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

Function sem_prison_remove

freebsd/kern/sysv_sem.c:1695–1707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1693}
1694
1695static int
1696sem_prison_remove(void *obj, void *data __unused)
1697{
1698 struct prison *pr = obj;
1699 struct prison *rpr;
1700
1701 prison_lock(pr);
1702 rpr = osd_jail_get(pr, sem_prison_slot);
1703 prison_unlock(pr);
1704 if (rpr == pr)
1705 sem_prison_cleanup(pr);
1706 return (0);
1707}
1708
1709static void
1710sem_prison_cleanup(struct prison *pr)

Callers

nothing calls this directly

Calls 3

prison_lockFunction · 0.85
prison_unlockFunction · 0.85
sem_prison_cleanupFunction · 0.85

Tested by

no test coverage detected