Home
last modified time | relevance | path

Searched refs:p_flag (Results 1 – 25 of 66) sorted by relevance

123

/freebsd-9-stable/sys/fs/procfs/
Dprocfs_ctl.c63 ((p)->p_flag & P_TRACED))
124 if (p->p_flag & P_TRACED) { in procfs_control()
143 p->p_flag |= P_TRACED; in procfs_control()
210 if ((p->p_flag & P_TRACED) == 0) { in procfs_control()
216 p->p_flag &= ~(P_TRACED | P_STOPPED_TRACE); in procfs_control()
238 p->p_flag &= ~P_WAITED; /* XXX ? */ in procfs_control()
262 p->p_flag &= ~P_STOPPED_SIG; /* this uses SIGSTOP */ in procfs_control()
271 if (p->p_flag & P_TRACED) { in procfs_control()
274 (p->p_flag & P_TRACED) && in procfs_control()
346 p->p_flag &= ~P_STOPPED_SIG; in procfs_doprocctl()
Dprocfs.c121 if ((p->p_flag & P_SUGID) && pn->pn_type != pfstype_procdir) in procfs_attr()
136 return ((p->p_flag & P_SYSTEM) == 0); in procfs_notsystem()
147 return ((p->p_flag & P_SYSTEM) == 0 && p_candebug(td, p) == 0); in procfs_candebug()
Dprocfs_status.c96 if ((p->p_flag & P_CONTROLT) && (tp = sess->s_ttyp)) in procfs_doprocstatus()
125 if (p->p_flag & P_INMEM) { in procfs_doprocstatus()
189 if ((p->p_flag & P_SYSTEM) != 0) { in procfs_doproccmdline()
Dprocfs_ioctl.c127 while (p->p_step == 0 && (p->p_flag & P_WEXIT) == 0) { in procfs_ioctl()
147 while (p->p_step == 0 && (p->p_flag & P_WEXIT) == 0) { in procfs_ioctl()
186 p->p_flag &= ~(P_STOPPED_TRACE|P_STOPPED_SIG); in procfs_ioctl()
/freebsd-9-stable/sys/ddb/
Ddb_ps.c174 if (!(p->p_flag & P_INMEM)) in db_ps()
176 if (p->p_flag & P_TRACED) in db_ps()
178 if (p->p_flag & P_WEXIT && p->p_state != PRS_ZOMBIE) in db_ps()
180 if (p->p_flag & P_PPWAIT) in db_ps()
182 if (p->p_flag & P_SYSTEM || p->p_lock > 0) in db_ps()
188 if (p->p_flag & P_CONTROLT) in db_ps()
193 if (p->p_flag & P_HADTHREADS) { in db_ps()
199 if (p->p_flag & P_SYSTEM) in db_ps()
202 if (p->p_flag & P_SYSTEM) in db_ps()
207 dumpthread(p, td, p->p_flag & P_HADTHREADS); in db_ps()
[all …]
/freebsd-9-stable/sys/vm/
Dvm_glue.c634 if ((p->p_flag & P_INMEM) == 0)
644 if (p->p_flag & P_SWAPPINGIN) {
645 while (p->p_flag & P_SWAPPINGIN)
646 msleep(&p->p_flag, &p->p_mtx, PVM, "faultin", 0);
649 if ((p->p_flag & P_INMEM) == 0) {
655 p->p_flag |= P_SWAPPINGIN;
669 wakeup(&p->p_flag);
707 p->p_flag & (P_SWAPPINGOUT | P_SWAPPINGIN | P_INMEM)) { in swapper()
755 if (p->p_flag & (P_INMEM | P_SWAPPINGOUT | P_SWAPPINGIN)) { in swapper()
829 if ((p->p_flag & P_SYSTEM) != 0)
[all …]
/freebsd-9-stable/sys/kern/
Dkern_thread.c436 if (p->p_flag & P_HADTHREADS) { in thread_exit()
565 p->p_flag &= ~P_HADTHREADS; in thread_unthread()
628 if ((p->p_flag & P_HADTHREADS) == 0) in thread_single()
636 p->p_flag |= P_SINGLE_EXIT; in thread_single()
637 p->p_flag &= ~P_SINGLE_BOUNDARY; in thread_single()
639 p->p_flag &= ~P_SINGLE_EXIT; in thread_single()
641 p->p_flag |= P_SINGLE_BOUNDARY; in thread_single()
643 p->p_flag &= ~P_SINGLE_BOUNDARY; in thread_single()
645 p->p_flag |= P_STOPPED_SINGLE; in thread_single()
726 p->p_flag &= ~(P_STOPPED_SINGLE | P_SINGLE_EXIT); in thread_single()
[all …]
Dkern_exit.c190 while (p->p_flag & P_HADTHREADS) { in exit1()
239 p->p_flag &= ~P_STOPPED_SIG; in exit1()
247 p->p_flag |= P_WEXIT; in exit1()
302 p->p_flag &= ~(P_TRACED | P_PPWAIT | P_PPTRACE); in exit1()
468 if (!(q->p_flag & P_TRACED)) { in exit1()
490 q->p_flag &= ~(P_TRACED | P_STOPPED_TRACE); in exit1()
1156 if (q->p_flag & P_STATCHILD) { in kern_wait6()
1158 q->p_flag &= ~P_STATCHILD; in kern_wait6()
1177 (p->p_flag & P_TRACED) != 0 && in kern_wait6()
1178 (p->p_flag & (P_STOPPED_TRACE | P_STOPPED_SIG)) != 0 && in kern_wait6()
[all …]
Dkern_fork.c328 if (((p1->p_flag & (P_HADTHREADS|P_SYSTEM)) == P_HADTHREADS) && in fork_norfproc()
359 if (((p1->p_flag & (P_HADTHREADS|P_SYSTEM)) == P_HADTHREADS) && in fork_norfproc()
500 p2->p_flag = P_INMEM; in do_fork()
503 if (p1->p_flag & P_PROFIL) in do_fork()
526 p2->p_flag |= P_PROTECTED; in do_fork()
554 if ((p1->p_leader->p_flag & P_WEXIT) != 0) { in do_fork()
588 p2->p_flag |= p1->p_flag & P_SUGID; in do_fork()
591 if (p1->p_session->s_ttyvp != NULL && p1->p_flag & P_CONTROLT) in do_fork()
592 p2->p_flag |= P_CONTROLT; in do_fork()
595 p2->p_flag |= P_PPWAIT; in do_fork()
[all …]
Dsys_process.c136 if ((td->td_proc->p_flag & P_INMEM) == 0) \
705 if ((p->p_flag & P_WEXIT) != 0) {
718 if ((p->p_flag & P_SYSTEM) != 0) {
724 if ((p->p_flag & P_STOPPED_TRACE) != 0) {
760 if (p->p_flag & P_TRACED) {
766 if (curp->p_flag & P_TRACED) {
787 if ((p->p_flag & P_TRACED) == 0) {
799 if ((p->p_flag & (P_STOPPED_SIG | P_STOPPED_TRACE)) == 0 ||
801 (p->p_flag & P_WAITED) == 0) {
806 if ((p->p_flag & P_STOPPED_TRACE) == 0) {
[all …]
Dkern_sig.c1609 if (p->p_pid <= 1 || p->p_flag & P_SYSTEM || in killpg1()
1643 if (p->p_pid <= 1 || p->p_flag & P_SYSTEM || in killpg1()
1843 (checkctty == 0 || p->p_flag & P_CONTROLT)) in pgsignal()
1899 if ((p->p_flag & P_TRACED) == 0 && SIGISMEMBER(ps->ps_sigcatch, sig) && in trapsignal()
2115 if (p->p_flag & P_CONTINUED) { in tdsendsignal()
2116 p->p_flag &= ~P_CONTINUED; in tdsendsignal()
2132 !((prop & SA_CONT) && (p->p_flag & P_STOPPED_SIG))) in tdsendsignal()
2153 KASSERT(!(p->p_flag & P_WEXIT), in tdsendsignal()
2160 if (p->p_flag & P_TRACED) in tdsendsignal()
2167 p->p_flag &= ~P_STOPPED_SIG; in tdsendsignal()
[all …]
Dkern_clock.c657 if (p->p_flag & P_STOPPROF)
659 if ((p->p_flag & P_PROFIL) == 0) {
660 p->p_flag |= P_PROFIL;
677 if (p->p_flag & P_PROFIL) {
679 p->p_flag |= P_STOPPROF;
683 p->p_flag &= ~P_STOPPROF;
685 if ((p->p_flag & P_PROFIL) == 0)
687 p->p_flag &= ~P_PROFIL;
805 if (td->td_proc->p_flag & P_PROFIL) in profclock_cnt()
Dsubr_syscall.c67 traced = (p->p_flag & P_TRACED) != 0; in syscallenter()
88 if (p->p_flag & P_TRACED) { in syscallenter()
215 if (p->p_flag & P_TRACED) { in syscallret()
258 while (p2->p_flag & P_PPWAIT) in syscallret()
Dsubr_trap.c107 KASSERT((p->p_flag & P_WEXIT) == 0, in userret()
134 if (p->p_flag & P_PROFIL) in userret()
207 if (td->td_pflags & TDP_OWEUPC && p->p_flag & P_PROFIL) { in ast()
Dkern_kthread.c103 p2->p_flag |= P_SYSTEM | P_KTHREAD; in kproc_create()
180 if ((p->p_flag & P_KTHREAD) == 0) { in kproc_suspend()
197 if ((p->p_flag & P_KTHREAD) == 0) { in kproc_resume()
295 p->p_flag |= P_HADTHREADS; in kthread_add()
Dkern_exec.c292 if (p->p_flag & P_HADTHREADS) {
306 if (p->p_flag & P_HADTHREADS) {
377 KASSERT((p->p_flag & P_INEXEC) == 0,
379 p->p_flag |= P_INEXEC;
667 p->p_flag |= P_EXEC;
668 if (p->p_pptr && (p->p_flag & P_PPWAIT)) {
669 p->p_flag &= ~(P_PPWAIT | P_PPTRACE);
705 (p->p_flag & P_TRACED) == 0) {
762 p->p_flag &= ~P_SUGID;
805 p->p_flag &= ~P_INEXEC;
[all …]
Dsubr_kdb.c539 if (p->p_flag & P_INMEM) { in kdb_thr_first()
556 if (p->p_flag & P_INMEM && p->p_pid == pid) in kdb_thr_from_pid()
585 if (p != NULL && (p->p_flag & P_INMEM)) in kdb_thr_next()
Dtty_tty.c70 if (!(curthread->td_proc->p_flag & P_CONTROLT)) in ctty_clone()
/freebsd-9-stable/sys/i386/linux/
Dlinux_ptrace.c225 if (cpu_fxsr == 0 || (td->td_proc->p_flag & P_INMEM) == 0) in linux_proc_read_fpxregs()
236 if (cpu_fxsr == 0 || (td->td_proc->p_flag & P_INMEM) == 0) in linux_proc_write_fpxregs()
360 if ((p->p_flag & P_WEXIT) != 0) { in linux_ptrace()
369 if ((p->p_flag & P_SYSTEM) != 0) { in linux_ptrace()
375 if ((p->p_flag & P_TRACED) == 0) { in linux_ptrace()
387 if (!P_SHOULDSTOP(p) || (p->p_flag & P_WAITED) == 0) { in linux_ptrace()
/freebsd-9-stable/usr.bin/logins/
Dlogins.c71 static int p_flag; variable
265 if (p_flag) in select_users()
376 p_flag = 1; in main()
/freebsd-9-stable/sys/sys/
Dproc.h501 int p_flag; /* (c) P_* flags. */ member
646 #define P_SHOULDSTOP(p) ((p)->p_flag & P_STOPPED)
647 #define P_KILLED(p) ((p)->p_flag & P_WKILLED)
775 KASSERT(!((p)->p_flag & P_WEXIT) || (p) == curproc, \
778 if (((p)->p_flag & P_INMEM) == 0) \
794 if (((p)->p_flag & P_WEXIT) && (p)->p_lock == 0) \
/freebsd-9-stable/sys/compat/linux/
Dlinux_emul.c319 if (q->p_flag & P_WEXIT) in linux_proc_exit()
326 if ((q->p_flag & P_WEXIT) == 0 && em->pdeath_signal != 0) { in linux_proc_exit()
464 if ((sp->p_flag & P_WEXIT) == 0) in linux_kill_threads()
/freebsd-9-stable/contrib/less/
Dcharset.c33 int *p_flag; member
215 if (p->p_flag != NULL)
216 *(p->p_flag) = 1;
/freebsd-9-stable/sys/compat/svr4/
Dsvr4_misc.c1299 if ((p->p_flag & P_STOPPED_SIG) &&
1301 (p->p_flag & P_WAITED) == 0 &&
1302 (p->p_flag & P_TRACED || uap->options & SVR4_WSTOPPED)) {
1305 p->p_flag |= P_WAITED;
1327 (p->p_flag & P_CONTINUED)) {
1330 p->p_flag &= ~P_CONTINUED;
1365 if (q->p_flag & P_STATCHILD) {
1366 q->p_flag &= ~P_STATCHILD;
/freebsd-9-stable/lib/libkvm/
Dkvm_proc.c240 if ((proc.p_flag & P_INMEM) && proc.p_stats != NULL) { in kvm_proclist()
292 if ((proc.p_flag & P_CONTROLT) && sess.s_ttyp != NULL) { in kvm_proclist()
365 if ((proc.p_flag & P_CONTROLT) == 0 || in kvm_proclist()
397 kp->ki_flag = proc.p_flag; in kvm_proclist()

123