Lines Matching defs:session
129 * (an orphaned pgrp will lock the slot, a session will lock
189 struct session session0 = {
583 proc_sesshold(struct session *ss)
591 proc_sessrele(struct session *ss)
599 * We keep the pgrp with the same id as the session in order to
601 * a reference to the session, it must be a 'zombie' pgrp by now.
615 kmem_free(ss, sizeof(struct session));
619 * Check that the specified process group is in the session of the
628 struct session *session;
649 session = pgrp->pg_session;
650 error = (session != p->p_pgrp->pg_session) ? EPERM : 0;
937 * session has not died yet (traditional).
1278 * proc_enterpgrp: move p to a new or existing process group (and session).
1282 * If is only valid to enter a process group that is in the session
1292 struct session *sess;
1317 /* ... in the same session... */
1320 /* ... existing pgid must be in same session ... */
1336 /* Changing the process group/session of a session
1349 /* Can only create a session if creating pgrp */
1513 struct session *ss;
1535 * The leading process group in a session is freed by proc_sessrele(),
1551 * process group of the same session). If that count reaches zero, the
1563 struct session *mysession = pgrp->pg_session;