diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-19 13:49:10 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-19 13:49:10 +0000 |
commit | 0739963874c598138e042011d5f23e4182383b9c (patch) | |
tree | e122dbdf8d29c24498f041ac4509ecfd7ae72a7e /cpukit/libnetworking/sys/sysctl.h | |
parent | Remove stray white spaces. (diff) | |
download | rtems-0739963874c598138e042011d5f23e4182383b9c.tar.bz2 |
2004-04-19 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/sys/sysctl.h: Partial update from FreeBSD.
* libnetworking/kern/kern_sysctl.c: Partial update from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking/sys/sysctl.h')
-rw-r--r-- | cpukit/libnetworking/sys/sysctl.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/cpukit/libnetworking/sys/sysctl.h b/cpukit/libnetworking/sys/sysctl.h index 063f88a880..7cb192f209 100644 --- a/cpukit/libnetworking/sys/sysctl.h +++ b/cpukit/libnetworking/sys/sysctl.h @@ -93,7 +93,7 @@ struct ctlname { * technology. This is the way nearly all new sysctl variables should * be implemented. * e.g. SYSCTL_INT(_parent, OID_AUTO, name, CTLFLAG_RW, &variable, 0, ""); - */ + */ #define OID_AUTO (-1) /* @@ -106,13 +106,18 @@ struct ctlname { #define SYSCTL_HANDLER_ARGS struct sysctl_oid *oidp, void *arg1, int arg2, \ struct sysctl_req *req +/* definitions for sysctl_req 'lock' member */ +#define REQ_UNLOCKED 0 /* not locked and not wired */ +#define REQ_LOCKED 1 /* locked and not wired */ +#define REQ_WIRED 2 /* locked and wired */ + /* * This describes the access space for a sysctl request. This is needed * so that we can use the interface from the kernel or from user-space. */ struct sysctl_req { struct thread *td; /* used for access checking */ - int lock; + int lock; /* locking/wiring state */ void *oldptr; size_t oldlen; size_t oldidx; @@ -328,7 +333,7 @@ TAILQ_HEAD(sysctl_ctx_list, sysctl_ctx_entry); #define KERN_BOOTTIME 21 /* struct: time kernel was booted */ #define KERN_NISDOMAINNAME 22 /* string: YP domain name */ #define KERN_UPDATEINTERVAL 23 /* int: update process sleep time */ -#define KERN_OSRELDATE 24 /* int: OS release date */ +#define KERN_OSRELDATE 24 /* int: kernel release date */ #define KERN_NTP_PLL 25 /* node: NTP PLL control */ #define KERN_BOOTFILE 26 /* string: name of booted kernel */ #define KERN_MAXFILESPERPROC 27 /* int: max open files per proc */ |