diff options
author | pjd <pjd@FreeBSD.org> | 2008-07-21 15:05:25 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2008-07-21 15:05:25 +0000 |
commit | 9d11b5b5b38a8ee6951e205a19c7a74fb7620ce6 (patch) | |
tree | 838175217515e587d78333c8470248f0f5bf45f8 /share/man/man9 | |
parent | 372e777769c2f1645ab541246f084a3d6977fa61 (diff) | |
download | FreeBSD-src-9d11b5b5b38a8ee6951e205a19c7a74fb7620ce6.zip FreeBSD-src-9d11b5b5b38a8ee6951e205a19c7a74fb7620ce6.tar.gz |
Implement the following macros for completeness:
SYSCTL_QUAD()
SYSCTL_ADD_QUAD()
TUNABLE_QUAD()
TUNABLE_QUAD_FETCH()
Now we can use 64bit tunables on 32bit systems.
Diffstat (limited to 'share/man/man9')
-rw-r--r-- | share/man/man9/sysctl.9 | 7 | ||||
-rw-r--r-- | share/man/man9/sysctl_add_oid.9 | 14 |
2 files changed, 19 insertions, 2 deletions
diff --git a/share/man/man9/sysctl.9 b/share/man/man9/sysctl.9 index fe34668..547c8cc 100644 --- a/share/man/man9/sysctl.9 +++ b/share/man/man9/sysctl.9 @@ -40,7 +40,8 @@ .Nm SYSCTL_UINT , .Nm SYSCTL_ULONG , .Nm SYSCTL_XINT , -.Nm SYSCTL_XLONG +.Nm SYSCTL_XLONG , +.Nm SYSCTL_QUAD .Nd Static sysctl declaration functions .Sh SYNOPSIS .In sys/types.h @@ -57,6 +58,7 @@ .Fn SYSCTL_ULONG parent nbr name access ptr val descr .Fn SYSCTL_XINT parent nbr name access ptr val descr .Fn SYSCTL_XLONG parent nbr name access ptr val descr +.Fn SYSCTL_QUAD parent nbr name access ptr val descr .Sh DESCRIPTION The .Nm SYSCTL @@ -83,8 +85,9 @@ New nodes are declared using one of .Fn SYSCTL_UINT , .Fn SYSCTL_ULONG , .Fn SYSCTL_XINT , +.Fn SYSCTL_XLONG , and -.Fn SYSCTL_XLONG . +.Fn SYSCTL_QUAD . Each macro accepts a parent name, as declared using .Fn SYSCTL_DECL , an OID number, typically diff --git a/share/man/man9/sysctl_add_oid.9 b/share/man/man9/sysctl_add_oid.9 index 41de908..43f3112 100644 --- a/share/man/man9/sysctl_add_oid.9 +++ b/share/man/man9/sysctl_add_oid.9 @@ -147,6 +147,16 @@ .Fa "const char *descr" .Fc .Ft struct sysctl_oid * +.Fo SYSCTL_ADD_QUAD +.Fa "struct sysctl_ctx_list *ctx" +.Fa "struct sysctl_oid_list *parent" +.Fa "int number" +.Fa "const char *name" +.Fa "int access" +.Fa "int64_t *arg" +.Fa "const char *descr" +.Fc +.Ft struct sysctl_oid * .Fo SYSCTL_ADD_OPAQUE .Fa "struct sysctl_ctx_list *ctx" .Fa "struct sysctl_oid_list *parent" @@ -430,6 +440,10 @@ variable. creates an oid that handles an .Li unsigned long variable. +.It Fn SYSCTL_ADD_QUAD +creates an oid that handles an +.Li int64_t +variable. .It Fn SYSCTL_ADD_OPAQUE creates an oid that handles any chunk of opaque data of the size specified by the |