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

Function sbuf_new_for_sysctl

freebsd/kern/kern_sysctl.c:2451–2462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2449}
2450
2451struct sbuf *
2452sbuf_new_for_sysctl(struct sbuf *s, char *buf, int length,
2453 struct sysctl_req *req)
2454{
2455
2456 /* Supply a default buffer size if none given. */
2457 if (buf == NULL && length == 0)
2458 length = 64;
2459 s = sbuf_new(s, buf, length, SBUF_FIXEDLEN | SBUF_INCLUDENUL);
2460 sbuf_set_drain(s, sbuf_sysctl_drain, req);
2461 return (s);
2462}
2463
2464#ifdef DDB
2465

Callers 15

fletcher_4_paramFunction · 0.85
sysctl_mac_veriexec_dbFunction · 0.85
sysctl_ieee80211comsFunction · 0.85
sys_print_debugFunction · 0.85
sysctl_kmapsFunction · 0.85
sysctl_kmapsFunction · 0.85
sysctl_bcm2835_rng_dumpFunction · 0.85
kdb_sysctl_availableFunction · 0.85

Calls 2

sbuf_newFunction · 0.85
sbuf_set_drainFunction · 0.85

Tested by

no test coverage detected