diff options
author | kib <kib@FreeBSD.org> | 2013-10-25 16:33:24 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2013-10-25 16:33:24 +0000 |
commit | 3056ea94bbf733ca0aeeb7772efef40884382338 (patch) | |
tree | 8cdc43bc7a031b40ce768ad7193ec70f127507b9 /sys/sys | |
parent | f2cf20f78fcdd44d412de89a584d6d98ef5c585c (diff) | |
download | FreeBSD-src-3056ea94bbf733ca0aeeb7772efef40884382338.zip FreeBSD-src-3056ea94bbf733ca0aeeb7772efef40884382338.tar.gz |
MFC r256502:
Similar to debug.iosize_max_clamp sysctl, introduce
devfs_iosize_max_clamp sysctl, which allows/disables SSIZE_MAX-sized
i/o requests on the devfs files.
Approved by: re (glebius)
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/systm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h index 2000e92..b86f7a2 100644 --- a/sys/sys/systm.h +++ b/sys/sys/systm.h @@ -146,7 +146,9 @@ extern const void *zero_region; /* address space maps to a zeroed page */ extern int unmapped_buf_allowed; extern int iosize_max_clamp; +extern int devfs_iosize_max_clamp; #define IOSIZE_MAX (iosize_max_clamp ? INT_MAX : SSIZE_MAX) +#define DEVFS_IOSIZE_MAX (devfs_iosize_max_clamp ? INT_MAX : SSIZE_MAX) /* * General function declarations. |