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

Function ng_l2cap_prepend

freebsd/netgraph/bluetooth/l2cap/ng_l2cap_misc.c:594–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592 */
593
594struct mbuf *
595ng_l2cap_prepend(struct mbuf *m, int size)
596{
597 M_PREPEND(m, size, M_NOWAIT);
598 if (m == NULL || (m->m_len < size && (m = m_pullup(m, size)) == NULL))
599 return (NULL);
600
601 return (m);
602} /* ng_l2cap_prepend */
603
604/*
605 * Default flow settings

Callers 3

ng_l2cap_lp_sendFunction · 0.85
ng_l2cap_con_wakeupFunction · 0.85

Calls 1

m_pullupFunction · 0.85

Tested by

no test coverage detected