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

Function in_pcbwild_remove

freebsd/netinet/in_pcbgroup.c:347–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347static void
348in_pcbwild_remove(struct inpcb *inp)
349{
350 struct inpcbinfo *pcbinfo;
351 u_int pgn;
352
353 INP_WLOCK_ASSERT(inp);
354 KASSERT((inp->inp_flags2 & INP_PCBGROUPWILD),
355 ("%s: not wild", __func__));
356
357 pcbinfo = inp->inp_pcbinfo;
358 for (pgn = 0; pgn < pcbinfo->ipi_npcbgroups; pgn++)
359 INP_GROUP_LOCK(&pcbinfo->ipi_pcbgroups[pgn]);
360 CK_LIST_REMOVE(inp, inp_pcbgroup_wild);
361 for (pgn = 0; pgn < pcbinfo->ipi_npcbgroups; pgn++)
362 INP_GROUP_UNLOCK(&pcbinfo->ipi_pcbgroups[pgn]);
363 inp->inp_flags2 &= ~INP_PCBGROUPWILD;
364}
365
366static __inline int
367in_pcbwild_needed(struct inpcb *inp)

Callers 2

in_pcbgroup_removeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected