Lines Matching defs:session
132 * (an orphaned pgrp will lock the slot, a session will lock
192 struct session session0 = {
582 * Session reference counting.
586 proc_sesshold(struct session *ss)
594 proc_sessrele(struct session *ss)
602 * We keep the pgrp with the same id as the session in order to
604 * a reference to the session, it must be a 'zombie' pgrp by now.
618 kmem_free(ss, sizeof(struct session));
622 * Check that the specified process group is in the session of the
631 struct session *session;
652 session = pgrp->pg_session;
653 error = (session != p->p_pgrp->pg_session) ? SET_ERROR(EPERM) : 0;
940 * session has not died yet (traditional).
1281 * proc_enterpgrp: move p to a new or existing process group (and session).
1285 * If is only valid to enter a process group that is in the session
1295 struct session *sess;
1319 /* ... in the same session... */
1322 /* ... existing pgid must be in same session ... */
1338 /* Changing the process group/session of a session
1353 /* Can only create a session if creating pgrp */
1520 struct session *ss;
1542 * The leading process group in a session is freed by proc_sessrele(),
1558 * process group of the same session). If that count reaches zero, the
1570 struct session *mysession = pgrp->pg_session;