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

Function shm_prison_remove

freebsd/kern/sysv_shm.c:1241–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1239}
1240
1241static int
1242shm_prison_remove(void *obj, void *data __unused)
1243{
1244 struct prison *pr = obj;
1245 struct prison *rpr;
1246
1247 SYSVSHM_LOCK();
1248 prison_lock(pr);
1249 rpr = osd_jail_get(pr, shm_prison_slot);
1250 prison_unlock(pr);
1251 if (rpr == pr)
1252 shm_prison_cleanup(pr);
1253 SYSVSHM_UNLOCK();
1254 return (0);
1255}
1256
1257static void
1258shm_prison_cleanup(struct prison *pr)

Callers

nothing calls this directly

Calls 3

prison_lockFunction · 0.85
prison_unlockFunction · 0.85
shm_prison_cleanupFunction · 0.85

Tested by

no test coverage detected