Lines Matching refs:pgrp
125 pid_t s_ttypgrpid; /* tty's pgrp id */
149 struct pgrp {
150 LIST_ENTRY(pgrp) pg_hash; /* Hash chain. (LL) */
151 LIST_HEAD(, proc) pg_members; /* Pointer to pgrp members. (PGL) */
154 int pg_jobc; /* # procs qualifying pgrp for job control (PGL) */
158 lck_mtx_t pg_mlock; /* mutex lock to protect pgrp */
167 #define PGRP_NULL (struct pgrp *)0
199 LIST_ENTRY(proc) p_pglist; /* List of processes in pgrp.(PGL) */
300 struct pgrp *p_pgrp; /* Pointer to process group. (LL) */
361 #define P_LIST_INPGRP 0x00020000 /* process is in pgrp */
362 #define P_LIST_PGRPTRANS 0x00040000 /* pgrp is getting replaced */
363 #define P_LIST_PGRPTRWAIT 0x00080000 /* wait for pgrp replacement */
504 extern LIST_HEAD(pgrphashhead, pgrp) *pgrphashtbl;
543 extern void fixjobc(struct proc *p, struct pgrp *pgrp, int entering);
558 extern int pgrp_iterate(struct pgrp * pgrp, int flags, int (*callout)(proc_t , void *), void *arg, int (*filterfn)(proc_t , void *), void *filterarg);
569 extern struct pgrp *pgfind(pid_t);
570 extern void pg_rele(struct pgrp * pgrp);
572 extern struct pgrp * proc_pgrp(proc_t);
573 extern struct pgrp * tty_pgrp(struct tty * tp);
574 extern struct pgrp * pgfind_internal(pid_t);
576 extern void pgrp_lock(struct pgrp * pgrp);
577 extern void pgrp_unlock(struct pgrp * pgrp);
580 extern struct session * pgrp_session(struct pgrp * pgrp);