Home
last modified time | relevance | path

Searched refs:nswapdev (Results 1 – 4 of 4) sorted by relevance

/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_storage_tbl.c378 int nswapdev; in storage_OS_get_swap() local
380 len = sizeof(nswapdev); in storage_OS_get_swap()
381 nswapdev = 0; in storage_OS_get_swap()
383 if (sysctlbyname("vm.nswapdev", &nswapdev, &len, NULL,0 ) < 0) { in storage_OS_get_swap()
391 if (nswapdev <= 0) { in storage_OS_get_swap()
392 HRDBG("vm.nswapdev is %d", nswapdev); in storage_OS_get_swap()
396 if (nswapdev + 1 != (int)swap_devs_len || swap_devs == NULL) { in storage_OS_get_swap()
397 swap_devs_len = nswapdev + 1; in storage_OS_get_swap()
408 nswapdev = kvm_getswapinfo(hr_kd, swap_devs, swap_devs_len, 0); in storage_OS_get_swap()
409 if (nswapdev < 0) { in storage_OS_get_swap()
[all …]
/freebsd/sys/vm/
H A Dswap_pager.c159 static int nswapdev; /* Number of swap devices */ variable
1884 return (nswapdev); in swap_pager_nswapdev()
2783 nswapdev++; in swaponsomething()
2909 nswapdev--; in swapoff_one()
2910 if (nswapdev == 0) { in swapoff_one()
2958 nswapdev * howmany(BBSIZE, PAGE_SIZE); in swap_pager_status()
3064 SYSCTL_INT(_vm, OID_AUTO, nswapdev, CTLFLAG_RD, &nswapdev, 0,
/freebsd/usr.bin/top/
H A Dmachine.c281 int carc_en, nswapdev; in machine_init() local
313 size = sizeof(nswapdev); in machine_init()
314 if (sysctlbyname("vm.nswapdev", &nswapdev, &size, NULL, 0) == 0 && in machine_init()
315 nswapdev != 0) in machine_init()
/freebsd/tools/tools/sysdoc/
H A Dtunables.mdoc2161 vm.nswapdev