Export nswapdev through sysctl(8).
Sponsored by: DARPA, NAI Labs
This commit is contained in:
parent
09d225d8c3
commit
8dcfdf3f80
@ -377,5 +377,7 @@ sysctl_vm_swap_info(SYSCTL_HANDLER_ARGS)
|
||||
return (ENOENT);
|
||||
}
|
||||
|
||||
SYSCTL_INT(_vm, OID_AUTO, nswapdev, CTLFLAG_RD, &nswdev, 0,
|
||||
"Number of swap devices");
|
||||
SYSCTL_NODE(_vm, OID_AUTO, swap_info, CTLFLAG_RD, sysctl_vm_swap_info,
|
||||
"Swap statistics by device");
|
||||
|
Loading…
Reference in New Issue
Block a user