MCPcopy Create free account
hub / github.com/acidanthera/RestrictEvents / sysctl_oid_iterator_begin

Function sysctl_oid_iterator_begin

RestrictEvents/SoftwareUpdate.cpp:53–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51bool revsbvmmIsSet;
52
53static struct sysctl_oid_iterator sysctl_oid_iterator_begin(struct sysctl_oid_list *l) {
54 struct sysctl_oid_iterator it = { };
55 struct sysctl_oid *a = SLIST_FIRST(l);
56
57 if (a == NULL) {
58 return it;
59 }
60
61 if (a->oid_number == OID_MUTABLE_ANCHOR) {
62 it.a = SLIST_NEXT(a, oid_link);
63 it.b = SLIST_FIRST((struct sysctl_oid_list *)a->oid_arg1);
64 } else {
65 it.a = a;
66 }
67 return it;
68}
69
70static struct sysctl_oid *sysctl_oid_iterator_next_system_order(struct sysctl_oid_iterator *it) {
71 struct sysctl_oid *a = it->a;

Callers 1

sysctl_by_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected