|
Lines 87-93
Link Here
|
| 87 |
* Order by number in each list. |
87 |
* Order by number in each list. |
| 88 |
*/ |
88 |
*/ |
| 89 |
|
89 |
|
| 90 |
void sysctl_register_oid(struct sysctl_oid *oidp) |
90 |
void |
|
|
91 |
sysctl_register_oid(struct sysctl_oid *oidp) |
| 91 |
{ |
92 |
{ |
| 92 |
struct sysctl_oid_list *parent = oidp->oid_parent; |
93 |
struct sysctl_oid_list *parent = oidp->oid_parent; |
| 93 |
struct sysctl_oid *p; |
94 |
struct sysctl_oid *p; |
|
Lines 135-141
Link Here
|
| 135 |
SLIST_INSERT_HEAD(parent, oidp, oid_link); |
136 |
SLIST_INSERT_HEAD(parent, oidp, oid_link); |
| 136 |
} |
137 |
} |
| 137 |
|
138 |
|
| 138 |
void sysctl_unregister_oid(struct sysctl_oid *oidp) |
139 |
void |
|
|
140 |
sysctl_unregister_oid(struct sysctl_oid *oidp) |
| 139 |
{ |
141 |
{ |
| 140 |
SLIST_REMOVE(oidp->oid_parent, oidp, sysctl_oid, oid_link); |
142 |
SLIST_REMOVE(oidp->oid_parent, oidp, sysctl_oid, oid_link); |
| 141 |
} |
143 |
} |
|
Lines 371-377
Link Here
|
| 371 |
*/ |
373 |
*/ |
| 372 |
SET_DECLARE(sysctl_set, struct sysctl_oid); |
374 |
SET_DECLARE(sysctl_set, struct sysctl_oid); |
| 373 |
|
375 |
|
| 374 |
static void sysctl_register_all(void *arg) |
376 |
static void |
|
|
377 |
sysctl_register_all(void *arg) |
| 375 |
{ |
378 |
{ |
| 376 |
struct sysctl_oid **oidp; |
379 |
struct sysctl_oid **oidp; |
| 377 |
|
380 |
|
|
Lines 1084-1090
Link Here
|
| 1084 |
* must be in kernel space. |
1087 |
* must be in kernel space. |
| 1085 |
*/ |
1088 |
*/ |
| 1086 |
int |
1089 |
int |
| 1087 |
userland_sysctl(struct proc *p, int *name, u_int namelen, void *old, size_t *oldlenp, int inkernel, void *new, size_t newlen, size_t *retval) |
1090 |
userland_sysctl(struct proc *p, int *name, u_int namelen, void *old, |
|
|
1091 |
size_t *oldlenp, int inkernel, void *new, size_t newlen, size_t *retval) |
| 1088 |
{ |
1092 |
{ |
| 1089 |
int error = 0; |
1093 |
int error = 0; |
| 1090 |
struct sysctl_req req, req2; |
1094 |
struct sysctl_req req, req2; |