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

Function semu_try_free

freebsd/kern/sysv_sem.c:427–438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427static int
428semu_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

Callers 2

semundo_adjustFunction · 0.85
semundo_clearFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected