Lines Matching defs:proc
41 #include <sys/proc.h>
65 SDT_PROVIDER_DECLARE(proc);
66 SDT_PROBE_DEFINE(proc, , , lwp__exit);
78 static int thread_unsuspend_one(struct thread *td, struct proc *p,
245 proc_linkup0(struct proc *p, struct thread *td)
247 TAILQ_INIT(&p->p_threads); /* all threads in proc */
252 proc_linkup(struct proc *p, struct thread *td)
402 struct proc *p;
504 * called with Giant, proc and schedlock not held.
507 thread_wait(struct proc *p)
532 thread_link(struct thread *td, struct proc *p)
560 struct proc *p = td->td_proc;
566 /* Must NOT clear links to proc! */
570 calc_remaining(struct proc *p, int mode)
595 weed_inhib(int mode, struct thread *td2, struct proc *p)
662 thread_single(struct proc *p, int mode)
680 ("mode %d proc %p curproc %p", mode, p, td->td_proc));
794 struct proc *p;
841 struct proc *p;
926 thread_suspend_switch(struct thread *td, struct proc *p)
934 * dropping the proc lock while the thread lock is owned.
957 struct proc *p;
970 thread_unsuspend_one(struct thread *td, struct proc *p, bool boundary)
992 thread_unsuspend(struct proc *p)
1031 thread_single_end(struct proc *p, int mode)
1078 thread_find(struct proc *p, lwpid_t tid)
1090 /* Locate a thread by number; return with proc lock held. */