| 425 | } |
| 426 | |
| 427 | static int |
| 428 | semu_try_free(struct sem_undo *suptr) |
| 429 | { |
| 430 | |
| 431 | SEMUNDO_LOCKASSERT(MA_OWNED); |
| 432 | |
| 433 | if (suptr->un_cnt != 0) |
| 434 | return (0); |
| 435 | LIST_REMOVE(suptr, un_next); |
| 436 | LIST_INSERT_HEAD(&semu_free_list, suptr, un_next); |
| 437 | return (1); |
| 438 | } |
| 439 | |
| 440 | /* |
| 441 | * Adjust a particular entry for a particular proc |
no outgoing calls
no test coverage detected