| 345 | } |
| 346 | |
| 347 | static void |
| 348 | unp_pcb_lock_pair(struct unpcb *unp, struct unpcb *unp2) |
| 349 | { |
| 350 | UNP_PCB_UNLOCK_ASSERT(unp); |
| 351 | UNP_PCB_UNLOCK_ASSERT(unp2); |
| 352 | |
| 353 | if (unp == unp2) { |
| 354 | UNP_PCB_LOCK(unp); |
| 355 | } else if ((uintptr_t)unp2 > (uintptr_t)unp) { |
| 356 | UNP_PCB_LOCK(unp); |
| 357 | UNP_PCB_LOCK(unp2); |
| 358 | } else { |
| 359 | UNP_PCB_LOCK(unp2); |
| 360 | UNP_PCB_LOCK(unp); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | static void |
| 365 | unp_pcb_unlock_pair(struct unpcb *unp, struct unpcb *unp2) |
no outgoing calls
no test coverage detected