Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160242135
D19007.id53346.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D19007.id53346.diff
View Options
Index: sys/kern/kern_mib.c
===================================================================
--- sys/kern/kern_mib.c
+++ sys/kern/kern_mib.c
@@ -187,7 +187,9 @@
return (sysctl_handle_long(oidp, &val, 0, req));
}
SYSCTL_PROC(_hw, HW_PHYSMEM, physmem, CTLTYPE_ULONG | CTLFLAG_RD,
- 0, 0, sysctl_hw_physmem, "LU", "");
+ 0, 0, sysctl_hw_physmem, "LU",
+ "Amount of physical memory (in bytes), minus amount used by kernel and"
+ "pre-loaded drivers");
static int
sysctl_hw_realmem(SYSCTL_HANDLER_ARGS)
@@ -201,7 +203,7 @@
return (sysctl_handle_long(oidp, &val, 0, req));
}
SYSCTL_PROC(_hw, HW_REALMEM, realmem, CTLTYPE_ULONG | CTLFLAG_RD,
- 0, 0, sysctl_hw_realmem, "LU", "");
+ 0, 0, sysctl_hw_realmem, "LU", "Amount of physical memory (in bytes)");
static int
sysctl_hw_usermem(SYSCTL_HANDLER_ARGS)
@@ -216,9 +218,12 @@
return (sysctl_handle_long(oidp, &val, 0, req));
}
SYSCTL_PROC(_hw, HW_USERMEM, usermem, CTLTYPE_ULONG | CTLFLAG_RD,
- 0, 0, sysctl_hw_usermem, "LU", "");
+ 0, 0, sysctl_hw_usermem, "LU",
+ "Amount of memory (in bytes) available for all users");
-SYSCTL_LONG(_hw, OID_AUTO, availpages, CTLFLAG_RD, &physmem, 0, "");
+SYSCTL_LONG(_hw, OID_AUTO, availpages, CTLFLAG_RD, &physmem, 0,
+ "Amount of physical memory (in pages), minus amount used by kernel and"
+ "pre-loaded drivers");
u_long pagesizes[MAXPAGESIZES] = { PAGE_SIZE };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 23, 12:20 PM (9 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34245291
Default Alt Text
D19007.id53346.diff (1 KB)
Attached To
Mode
D19007: Add descriptions for sysctls in kern_mib.c which lack them.
Attached
Detach File
Event Timeline
Log In to Comment