diff options
author | tmm <tmm@FreeBSD.org> | 2001-06-01 22:53:10 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2001-06-01 22:53:10 +0000 |
commit | 87a858d545f37c808cc22343f075241e15fee343 (patch) | |
tree | 330c4e3ba5cf61d0a358f97401039aa45d6e15d7 /sys/vm/vm_param.h | |
parent | bf437699a2710e571265ed8b49504026dae2d36b (diff) | |
download | FreeBSD-src-87a858d545f37c808cc22343f075241e15fee343.zip FreeBSD-src-87a858d545f37c808cc22343f075241e15fee343.tar.gz |
Change the way information about swap devices is exported to be more
canonical: define a versioned struct xswdev, and add a sysctl node
handler that allows the user to get this structure for a certain device
index by specifying this index as last element of the MIB.
This new node handler, vm.swap_info, replaces the old vm.nswapdev
and vm.swapdevX.* (where X was the index) sysctls.
Diffstat (limited to 'sys/vm/vm_param.h')
-rw-r--r-- | sys/vm/vm_param.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/vm/vm_param.h b/sys/vm/vm_param.h index a0809fe..7237638 100644 --- a/sys/vm/vm_param.h +++ b/sys/vm/vm_param.h @@ -105,6 +105,18 @@ } /* + * Structure for swap device statistics + */ +#define XSWDEV_VERSION 1 +struct xswdev { + u_int xsw_version; + udev_t xsw_dev; + int xsw_flags; + int xsw_nblks; + int xsw_used; +}; + +/* * Return values from the VM routines. */ #define KERN_SUCCESS 0 |