Lines Matching refs:sysctl
34 sysctl(int *name, unsigned namelen, void *old, in sysctl() function
74 msg->sysctl.name = (int *)buf_addr; in sysctl()
75 msg->sysctl.namelen = namelen; in sysctl()
76 memcpy(msg->sysctl.name, name, namelen * sizeof(int)); in sysctl()
81 msg->sysctl.new = buf_addr; in sysctl()
82 msg->sysctl.newlen = newlen; in sysctl()
83 memcpy(msg->sysctl.new, new, newlen); in sysctl()
87 msg->sysctl.new = NULL; in sysctl()
88 msg->sysctl.newlen = 0; in sysctl()
92 msg->sysctl.oldlenp = (size_t *)buf_addr; in sysctl()
93 memcpy(msg->sysctl.oldlenp, oldlenp, sizeof(size_t)); in sysctl()
97 msg->sysctl.old = (void *)buf_addr; in sysctl()
98 memcpy(msg->sysctl.old, old, *oldlenp); in sysctl()
101 msg->sysctl.old = NULL; in sysctl()
104 msg->sysctl.oldlenp = NULL; in sysctl()
105 msg->sysctl.old = NULL; in sysctl()
127 if (oldlenp && retmsg->sysctl.oldlenp) { in sysctl()
128 *oldlenp = *retmsg->sysctl.oldlenp; in sysctl()
131 if (old && retmsg->sysctl.old && oldlenp) { in sysctl()
132 memcpy(old, retmsg->sysctl.old, *oldlenp); in sysctl()