diff options
author | obrien <obrien@FreeBSD.org> | 2006-08-12 23:33:10 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2006-08-12 23:33:10 +0000 |
commit | f6dcb4683584c820e63f041684eb1b3e8cd8ca5a (patch) | |
tree | 5d2fedc03004f918772ddd0e58221b3e8df6b30f /share/man | |
parent | b58bbb1e9036a12694ff93ee15a0929462aac893 (diff) | |
download | FreeBSD-src-f6dcb4683584c820e63f041684eb1b3e8cd8ca5a.zip FreeBSD-src-f6dcb4683584c820e63f041684eb1b3e8cd8ca5a.tar.gz |
Add an extension to the UINT & ULONG types. The XINT & XLONG types behave
the same, except sysctl(8) will print out the values in hex.
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/sysctl.9 | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/share/man/man9/sysctl.9 b/share/man/man9/sysctl.9 index a9a0751..9f5426a 100644 --- a/share/man/man9/sysctl.9 +++ b/share/man/man9/sysctl.9 @@ -38,7 +38,9 @@ .Nm SYSCTL_STRING , .Nm SYSCTL_STRUCT , .Nm SYSCTL_UINT , -.Nm SYSCTL_ULONG +.Nm SYSCTL_ULONG , +.Nm SYSCTL_XINT , +.Nm SYSCTL_XLONG .Nd Static sysctl declaration functions .Sh SYNOPSIS .In sys/types.h @@ -129,6 +131,24 @@ .Fa "val" .Fa "descr" .Fc +.Fo SYSCTL_XINT +.Fa "parent" +.Fa "nbr" +.Fa "name" +.Fa "access" +.Fa "ptr" +.Fa "val" +.Fa "descr" +.Fc +.Fo SYSCTL_XLONG +.Fa "parent" +.Fa "nbr" +.Fa "name" +.Fa "access" +.Fa "ptr" +.Fa "val" +.Fa "descr" +.Fc .Sh DESCRIPTION The .Nm @@ -153,8 +173,10 @@ New nodes are declared using one of .Nm SYSCTL_STRING , .Nm SYSCTL_STRUCT , .Nm SYSCTL_UINT , +.Nm SYSCTL_ULONG , +.Nm SYSCTL_XINT , and -.Nm SYSCTL_ULONG . +.Nm SYSCTL_XLONG . Each macro accepts a parent name, as declared using .Nm SYSCTL_DECL , an OID number, typically @@ -271,6 +293,7 @@ Examples of integer, opaque, string, and procedure sysctls follow: * Example of a constant integer value. Notice that the control * flags are CTLFLAG_RD, the variable pointer is NULL, and the * value is declared. + * If sysctl(8) should print this value in hex, use 'SYSCTL_XINT'. */ SYSCTL_INT(_debug_sizeof, OID_AUTO, bio, CTLFLAG_RD, NULL, sizeof(struct bio), "sizeof(struct bio)"); |