Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/proc.h
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | |||||
struct cpuset; | struct cpuset; | ||||
struct filecaps; | struct filecaps; | ||||
struct filemon; | struct filemon; | ||||
struct kaioinfo; | struct kaioinfo; | ||||
struct kaudit_record; | struct kaudit_record; | ||||
struct kcov_info; | struct kcov_info; | ||||
struct kdtrace_proc; | struct kdtrace_proc; | ||||
struct kdtrace_thread; | struct kdtrace_thread; | ||||
struct kq_timer_cb_data; | |||||
struct mqueue_notifier; | struct mqueue_notifier; | ||||
struct p_sched; | struct p_sched; | ||||
struct proc; | struct proc; | ||||
struct procdesc; | struct procdesc; | ||||
struct racct; | struct racct; | ||||
struct sbuf; | struct sbuf; | ||||
struct sleepqueue; | struct sleepqueue; | ||||
struct socket; | struct socket; | ||||
▲ Show 20 Lines • Show All 528 Lines • ▼ Show 20 Lines | #define p_endcopy p_xexit | ||||
/* | /* | ||||
* An orphan is the child that has been re-parented to the | * An orphan is the child that has been re-parented to the | ||||
* debugger as a result of attaching to it. Need to keep | * debugger as a result of attaching to it. Need to keep | ||||
* track of them for parent to be able to collect the exit | * track of them for parent to be able to collect the exit | ||||
* status of what used to be children. | * status of what used to be children. | ||||
*/ | */ | ||||
LIST_ENTRY(proc) p_orphan; /* (e) List of orphan processes. */ | LIST_ENTRY(proc) p_orphan; /* (e) List of orphan processes. */ | ||||
LIST_HEAD(, proc) p_orphans; /* (e) Pointer to list of orphans. */ | LIST_HEAD(, proc) p_orphans; /* (e) Pointer to list of orphans. */ | ||||
TAILQ_HEAD(, kq_timer_cb_data) p_kqtim_stop; /* (c) */ | |||||
}; | }; | ||||
#define p_session p_pgrp->pg_session | #define p_session p_pgrp->pg_session | ||||
#define p_pgid p_pgrp->pg_id | #define p_pgid p_pgrp->pg_id | ||||
#define NOCPU (-1) /* For when we aren't on a CPU. */ | #define NOCPU (-1) /* For when we aren't on a CPU. */ | ||||
#define NOCPU_OLD (255) | #define NOCPU_OLD (255) | ||||
#define MAXCPU_OLD (254) | #define MAXCPU_OLD (254) | ||||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
#define P2_PROTMAX_ENABLE 0x00000200 /* Force enable implied | #define P2_PROTMAX_ENABLE 0x00000200 /* Force enable implied | ||||
PROT_MAX. */ | PROT_MAX. */ | ||||
#define P2_PROTMAX_DISABLE 0x00000400 /* Force disable implied | #define P2_PROTMAX_DISABLE 0x00000400 /* Force disable implied | ||||
PROT_MAX. */ | PROT_MAX. */ | ||||
#define P2_STKGAP_DISABLE 0x00000800 /* Disable stack gap for | #define P2_STKGAP_DISABLE 0x00000800 /* Disable stack gap for | ||||
MAP_STACK */ | MAP_STACK */ | ||||
#define P2_STKGAP_DISABLE_EXEC 0x00001000 /* Stack gap disabled | #define P2_STKGAP_DISABLE_EXEC 0x00001000 /* Stack gap disabled | ||||
after exec */ | after exec */ | ||||
#define P2_ITSTOPPED 0x00002000 | |||||
/* Flags protected by proctree_lock, kept in p_treeflags. */ | /* Flags protected by proctree_lock, kept in p_treeflags. */ | ||||
#define P_TREE_ORPHANED 0x00000001 /* Reparented, on orphan list */ | #define P_TREE_ORPHANED 0x00000001 /* Reparented, on orphan list */ | ||||
#define P_TREE_FIRST_ORPHAN 0x00000002 /* First element of orphan | #define P_TREE_FIRST_ORPHAN 0x00000002 /* First element of orphan | ||||
list */ | list */ | ||||
#define P_TREE_REAPER 0x00000004 /* Reaper of subtree */ | #define P_TREE_REAPER 0x00000004 /* Reaper of subtree */ | ||||
#define P_TREE_GRPEXITED 0x00000008 /* exit1() done with job ctl */ | #define P_TREE_GRPEXITED 0x00000008 /* exit1() done with job ctl */ | ||||
▲ Show 20 Lines • Show All 249 Lines • ▼ Show 20 Lines | |||||
int enterthispgrp(struct proc *p, struct pgrp *pgrp); | int enterthispgrp(struct proc *p, struct pgrp *pgrp); | ||||
void faultin(struct proc *p); | void faultin(struct proc *p); | ||||
int fork1(struct thread *, struct fork_req *); | int fork1(struct thread *, struct fork_req *); | ||||
void fork_rfppwait(struct thread *); | void fork_rfppwait(struct thread *); | ||||
void fork_exit(void (*)(void *, struct trapframe *), void *, | void fork_exit(void (*)(void *, struct trapframe *), void *, | ||||
struct trapframe *); | struct trapframe *); | ||||
void fork_return(struct thread *, struct trapframe *); | void fork_return(struct thread *, struct trapframe *); | ||||
int inferior(struct proc *p); | int inferior(struct proc *p); | ||||
void itimer_proc_continued(struct proc *p); | |||||
void kqtimer_proc_continued(struct proc *p); | |||||
void kern_proc_vmmap_resident(struct vm_map *map, struct vm_map_entry *entry, | void kern_proc_vmmap_resident(struct vm_map *map, struct vm_map_entry *entry, | ||||
int *resident_count, bool *super); | int *resident_count, bool *super); | ||||
void kern_yield(int); | void kern_yield(int); | ||||
void kick_proc0(void); | void kick_proc0(void); | ||||
void killjobc(void); | void killjobc(void); | ||||
int leavepgrp(struct proc *p); | int leavepgrp(struct proc *p); | ||||
int maybe_preempt(struct thread *td); | int maybe_preempt(struct thread *td); | ||||
void maybe_yield(void); | void maybe_yield(void); | ||||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |