kern_mib.c (b17f9ad2c9da34e8544d02c3d530fe9fb41fdbe2) kern_mib.c (fbbb13f962e52bf547c5a901fe6fbc4390f6be54)
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Mike Karels at Berkeley Software Design, Inc.
7 *
8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD

--- 189 unchanged lines hidden (view full) ---

198
199 val = ctob(physmem - cnt.v_wire_count);
200 return (sysctl_handle_long(oidp, &val, 0, req));
201}
202
203SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_ULONG | CTLFLAG_RD,
204 0, 0, sysctl_hw_usermem, "LU", "");
205
1/*-
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Mike Karels at Berkeley Software Design, Inc.
7 *
8 * Quite extensively rewritten by Poul-Henning Kamp of the FreeBSD

--- 189 unchanged lines hidden (view full) ---

198
199 val = ctob(physmem - cnt.v_wire_count);
200 return (sysctl_handle_long(oidp, &val, 0, req));
201}
202
203SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_ULONG | CTLFLAG_RD,
204 0, 0, sysctl_hw_usermem, "LU", "");
205
206SYSCTL_ULONG(_hw, OID_AUTO, availpages, CTLFLAG_RD, &physmem, 0, "");
206SYSCTL_LONG(_hw, OID_AUTO, availpages, CTLFLAG_RD, &physmem, 0, "");
207
208u_long pagesizes[MAXPAGESIZES] = { PAGE_SIZE };
209
210static int
211sysctl_hw_pagesizes(SYSCTL_HANDLER_ARGS)
212{
213 int error;
214#ifdef SCTL_MASK32

--- 302 unchanged lines hidden ---
207
208u_long pagesizes[MAXPAGESIZES] = { PAGE_SIZE };
209
210static int
211sysctl_hw_pagesizes(SYSCTL_HANDLER_ARGS)
212{
213 int error;
214#ifdef SCTL_MASK32

--- 302 unchanged lines hidden ---