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

Function kdb_sysctl_available

freebsd/kern/subr_kdb.c:146–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144const char * volatile kdb_why = KDB_WHY_UNSET;
145
146static int
147kdb_sysctl_available(SYSCTL_HANDLER_ARGS)
148{
149 struct kdb_dbbe **iter;
150 struct sbuf sbuf;
151 int error;
152
153 sbuf_new_for_sysctl(&sbuf, NULL, 64, req);
154 SET_FOREACH(iter, kdb_dbbe_set) {
155 if ((*iter)->dbbe_active == 0)
156 sbuf_printf(&sbuf, "%s ", (*iter)->dbbe_name);
157 }
158 error = sbuf_finish(&sbuf);
159 sbuf_delete(&sbuf);
160 return (error);
161}
162
163static int
164kdb_sysctl_current(SYSCTL_HANDLER_ARGS)

Callers

nothing calls this directly

Calls 4

sbuf_new_for_sysctlFunction · 0.85
sbuf_printfFunction · 0.85
sbuf_finishFunction · 0.85
sbuf_deleteFunction · 0.85

Tested by

no test coverage detected