diff options
Diffstat (limited to 'share/man')
-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 |