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

Function msg_prison_remove

freebsd/kern/sysv_msg.c:1641–1653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1639}
1640
1641static int
1642msg_prison_remove(void *obj, void *data __unused)
1643{
1644 struct prison *pr = obj;
1645 struct prison *rpr;
1646
1647 prison_lock(pr);
1648 rpr = osd_jail_get(pr, msg_prison_slot);
1649 prison_unlock(pr);
1650 if (rpr == pr)
1651 msg_prison_cleanup(pr);
1652 return (0);
1653}
1654
1655static void
1656msg_prison_cleanup(struct prison *pr)

Callers

nothing calls this directly

Calls 3

prison_lockFunction · 0.85
prison_unlockFunction · 0.85
msg_prison_cleanupFunction · 0.85

Tested by

no test coverage detected