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

Function udp_newudpcb

freebsd/netinet/udp_usrreq.c:243–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243int
244udp_newudpcb(struct inpcb *inp)
245{
246 struct udpcb *up;
247
248 up = uma_zalloc(V_udpcb_zone, M_NOWAIT | M_ZERO);
249 if (up == NULL)
250 return (ENOBUFS);
251 inp->inp_ppcb = up;
252 return (0);
253}
254
255void
256udp_discardcb(struct udpcb *up)

Callers 2

udp_attachFunction · 0.85
udp6_attachFunction · 0.85

Calls 1

uma_zallocFunction · 0.50

Tested by

no test coverage detected