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

Function sysctl_ctx_init

freebsd/kern/kern_sysctl.c:588–603  ·  view source on GitHub ↗

Initialize a new context to keep track of dynamically added sysctls. */

Source from the content-addressed store, hash-verified

586
587/* Initialize a new context to keep track of dynamically added sysctls. */
588int
589sysctl_ctx_init(struct sysctl_ctx_list *c)
590{
591
592 if (c == NULL) {
593 return (EINVAL);
594 }
595
596 /*
597 * No locking here, the caller is responsible for not adding
598 * new nodes to a context until after this function has
599 * returned.
600 */
601 TAILQ_INIT(c);
602 return (0);
603}
604
605/* Free the context, and destroy all dynamic oids registered in this context */
606int

Callers 15

__kstat_createFunction · 0.85
ipf_fbsd_sysctl_createFunction · 0.85
ieee80211_sysctl_vattachFunction · 0.85
tcp_init_hptsiFunction · 0.85
rt_setup_new_rsFunction · 0.85
tcp_addrackFunction · 0.85
tcp_addbbrFunction · 0.85
setup_tmx86_longrunFunction · 0.85
alloc_bounce_zoneFunction · 0.85
alloc_bounce_zoneFunction · 0.85
qoriq_therm_init_sysctlFunction · 0.85
tsadc_init_sysctlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected