MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sysctl_find_oidname

Function sysctl_find_oidname

freebsd/kern/kern_sysctl.c:130–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128static int sysctl_new_kernel(struct sysctl_req *, void *, size_t);
129
130static struct sysctl_oid *
131sysctl_find_oidname(const char *name, struct sysctl_oid_list *list)
132{
133 struct sysctl_oid *oidp;
134
135 SYSCTL_ASSERT_LOCKED();
136 SLIST_FOREACH(oidp, list, oid_link) {
137 if (strcmp(oidp->oid_name, name) == 0) {
138 return (oidp);
139 }
140 }
141 return (NULL);
142}
143
144/*
145 * Initialization of the MIB tree.

Callers 3

sysctl_register_oidFunction · 0.85
sysctl_add_oidFunction · 0.85
sysctl_move_oidFunction · 0.85

Calls 1

strcmpFunction · 0.85

Tested by

no test coverage detected