Lines Matching refs:session
120 * One structure allocated per session.
122 struct session {
123 int s_count; /* Ref cnt; pgrps in session. (LL) */
132 LIST_ENTRY(session) s_hash; /* Hash chain.(LL) */
133 lck_mtx_t s_mlock; /* mutex lock to protect session */
137 #define SESSION_NULL (struct session *)0
141 * note that s_ttyp is not a reference in the session structre, so it can
142 * become invalid out from under the session if the device is closed, without
167 struct session * pg_session; /* Pointer to session. (LL ) */
636 extern LIST_HEAD(sesshashhead, session) *sesshashtbl;
711 extern struct session * session_find_internal(pid_t sessid);
715 extern struct session * proc_session(proc_t);
718 extern void session_lock(struct session * sess);
719 extern void session_unlock(struct session * sess);
720 extern struct session * pgrp_session(struct pgrp * pgrp);
721 extern void session_rele(struct session *sess);