MCPcopy Index your code
hub / github.com/F-Stack/f-stack / sbuf_data

Function sbuf_data

freebsd/kern/subr_sbuf.c:834–844  ·  view source on GitHub ↗

* Return a pointer to the sbuf data. */

Source from the content-addressed store, hash-verified

832 * Return a pointer to the sbuf data.
833 */
834char *
835sbuf_data(struct sbuf *s)
836{
837
838 assert_sbuf_integrity(s);
839 assert_sbuf_state(s, SBUF_FINISHED);
840 KASSERT(s->s_drain_func == NULL,
841 ("%s makes no sense on sbuf %p with drain", __func__, s));
842
843 return (s->s_buf);
844}
845
846/*
847 * Return the length of the sbuf data.

Callers 15

log_syseventFunction · 0.85
kstat_sysctl_ioFunction · 0.85
kstat_sysctl_rawFunction · 0.85
rules_to_stringFunction · 0.85
maybe_demoteFunction · 0.85
sysctl_tcp_hc_listFunction · 0.85
siftr_manage_opsFunction · 0.85
cc_list_availableFunction · 0.85
print_registerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected