Changeset 43158ce in rtems for cpukit/libnetworking/kern/kern_sysctl.c
- Timestamp:
- 04/26/04 11:59:48 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- a99bf0a
- Parents:
- d589e75
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libnetworking/kern/kern_sysctl.c
rd589e75 r43158ce 96 96 #define SYSCTL_LOCK() sx_xlock(&sysctllock) 97 97 #define SYSCTL_UNLOCK() sx_xunlock(&sysctllock) 98 #define SYSCTL_INIT() sx_init(&sysctllock, "sysctl sysctllock")98 #define SYSCTL_INIT() sx_init(&sysctllock, "sysctl lock") 99 99 #endif 100 100 … … 424 424 SET_DECLARE(sysctl_set, struct sysctl_oid); 425 425 426 void426 static void 427 427 sysctl_register_all(void *arg) 428 428 { … … 588 588 len, level+1, oidpp)) 589 589 return 0; 590 goto next;590 goto emptynode; 591 591 } 592 592 … … 617 617 next: 618 618 namelen = 1; 619 emptynode: 619 620 *len = level; 620 621 } … … 1078 1079 * amount of memory can be unwired in the sysctl exit code. 1079 1080 */ 1080 void 1081 int 1081 1082 sysctl_wire_old_buffer(struct sysctl_req *req, size_t len) 1082 1083 { … … 1088 1089 req->lock = REQ_WIRED; 1089 1090 } 1091 return (0); 1090 1092 } 1091 1093
Note: See TracChangeset
for help on using the changeset viewer.