sysv_msg.c (76ad42abf9d46c7a86c9e727603fe62e8b62a37b) sysv_msg.c (f7496dcab0360a74bfb00cd6118f66323fffda61)
1/*-
2 * Implementation of SVID messages
3 *
4 * Author: Daniel Boulet
5 *
6 * Copyright 1993 Daniel Boulet and RTMX Inc.
7 *
8 * This system call was implemented by Daniel Boulet under contract from RTMX.

--- 276 unchanged lines hidden (view full) ---

285 (void)osd_jail_set_reserved(&prison0, msg_prison_slot, rsv, &prison0);
286 prison_unlock(&prison0);
287 rsv = NULL;
288 sx_slock(&allprison_lock);
289 TAILQ_FOREACH(pr, &allprison, pr_list) {
290 if (rsv == NULL)
291 rsv = osd_reserve(msg_prison_slot);
292 prison_lock(pr);
1/*-
2 * Implementation of SVID messages
3 *
4 * Author: Daniel Boulet
5 *
6 * Copyright 1993 Daniel Boulet and RTMX Inc.
7 *
8 * This system call was implemented by Daniel Boulet under contract from RTMX.

--- 276 unchanged lines hidden (view full) ---

285 (void)osd_jail_set_reserved(&prison0, msg_prison_slot, rsv, &prison0);
286 prison_unlock(&prison0);
287 rsv = NULL;
288 sx_slock(&allprison_lock);
289 TAILQ_FOREACH(pr, &allprison, pr_list) {
290 if (rsv == NULL)
291 rsv = osd_reserve(msg_prison_slot);
292 prison_lock(pr);
293 if (prison_isvalid(pr) && (pr->pr_allow & PR_ALLOW_SYSVIPC)) {
293 if (pr->pr_allow & PR_ALLOW_SYSVIPC) {
294 (void)osd_jail_set_reserved(pr, msg_prison_slot, rsv,
295 &prison0);
296 rsv = NULL;
297 }
298 prison_unlock(pr);
299 }
300 if (rsv != NULL)
301 osd_free_reserved(rsv);

--- 1619 unchanged lines hidden ---
294 (void)osd_jail_set_reserved(pr, msg_prison_slot, rsv,
295 &prison0);
296 rsv = NULL;
297 }
298 prison_unlock(pr);
299 }
300 if (rsv != NULL)
301 osd_free_reserved(rsv);

--- 1619 unchanged lines hidden ---