| 1239 | } |
| 1240 | |
| 1241 | static int |
| 1242 | shm_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 | |
| 1257 | static void |
| 1258 | shm_prison_cleanup(struct prison *pr) |
nothing calls this directly
no test coverage detected