| 345 | } |
| 346 | |
| 347 | static void |
| 348 | in_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 | |
| 366 | static __inline int |
| 367 | in_pcbwild_needed(struct inpcb *inp) |
no outgoing calls
no test coverage detected