Home
last modified time | relevance | path

Searched refs:p_state (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/lib/libnetmap/
H A Dnmreq.c245 enum { P_START, P_RNGSFXOK, P_GETNUM, P_FLAGS, P_FLAGSOK, P_MEMID, P_ONESW } p_state; in nmreq_register_decode() local
257 p_state = P_START; in nmreq_register_decode()
264 switch (p_state) { in nmreq_register_decode()
269 p_state = P_ONESW; in nmreq_register_decode()
273 p_state = P_RNGSFXOK; in nmreq_register_decode()
277 p_state = P_GETNUM; in nmreq_register_decode()
280 p_state = P_FLAGS; in nmreq_register_decode()
283 p_state = P_MEMID; in nmreq_register_decode()
294 p_state = P_FLAGS; in nmreq_register_decode()
297 p_state = P_MEMID; in nmreq_register_decode()
[all …]
/freebsd/sys/net/
H A Dnetmap_user.h640 enum { P_START, P_RNGSFXOK, P_GETNUM, P_FLAGS, P_FLAGSOK, P_MEMID } p_state; in nm_parse() local
681 p_state = P_START; in nm_parse()
684 switch (p_state) { in nm_parse()
689 p_state = P_RNGSFXOK; in nm_parse()
693 p_state = P_RNGSFXOK; in nm_parse()
697 p_state = P_GETNUM; in nm_parse()
701 p_state = P_GETNUM; in nm_parse()
705 p_state = P_GETNUM; in nm_parse()
708 p_state = P_FLAGS; in nm_parse()
711 p_state = P_MEMID; in nm_parse()
[all …]
/freebsd/sys/kern/
H A Dtty_info.c206 switch (TESTAB(p1->p_state == PRS_ZOMBIE, p2->p_state == PRS_ZOMBIE)) { in proc_compare()
363 else if (p->p_state == PRS_ZOMBIE) in tty_info()
376 if (p->p_state == PRS_NEW || p->p_state == PRS_ZOMBIE) in tty_info()
H A Dkern_exit.c505 if (q->p_state == PRS_ZOMBIE) { in exit1()
712 p->p_state = PRS_ZOMBIE; in exit1()
920 KASSERT(p->p_state == PRS_ZOMBIE, ("proc_reap: !PRS_ZOMBIE")); in proc_reap()
1116 if (((options & WEXITED) == 0) && (p->p_state == PRS_ZOMBIE)) { in proc_to_reap()
1190 if (p->p_state == PRS_ZOMBIE && !check_only) { in proc_to_reap()
H A Dsys_procdesc.c373 if (p->p_state == PRS_ZOMBIE) { in procdesc_close()
533 if (pd->pd_proc->p_state != PRS_ZOMBIE) in procdesc_stat()
H A Dkern_racct.c1255 if (p->p_state != PRS_NORMAL) { in racctd()
1256 if (p->p_state == PRS_ZOMBIE) in racctd()
1308 if (p->p_state != PRS_NORMAL) { in racctd()
H A Dkern_fork.c389 p2->p_state = PRS_NEW; /* protect against others */ in do_fork()
713 p2->p_state = PRS_NORMAL; in do_fork()
1128 KASSERT(p->p_state == PRS_NORMAL, ("executing process is still new")); in fork_exit()
H A Dkern_resource.c133 if (p->p_state == PRS_NORMAL && in kern_getpriority()
149 if (p->p_state == PRS_NORMAL && in kern_getpriority()
225 if (p->p_state == PRS_NORMAL && in kern_setpriority()
241 if (p->p_state == PRS_NORMAL && in kern_setpriority()
H A Dkern_proc.c426 if (p->p_state == PRS_NEW) { in pfind_any_locked()
456 if (p->p_state == PRS_NEW || in _pfind()
457 (!zombie && p->p_state == PRS_ZOMBIE)) { in _pfind()
1139 if (p->p_state != PRS_NEW && in fill_kinfo_proc_only()
1140 p->p_state != PRS_ZOMBIE && in fill_kinfo_proc_only()
1152 } else if (p->p_state == PRS_ZOMBIE) in fill_kinfo_proc_only()
1278 if (p->p_state == PRS_NORMAL) { /* approximate. */ in fill_kinfo_thread()
1292 } else if (p->p_state == PRS_ZOMBIE) { in fill_kinfo_thread()
1611 if (p->p_state == PRS_NEW) in proc_iterate()
H A Dinit_main.c515 p->p_state = PRS_NORMAL; in proc0_init()
663 if (p->p_state == PRS_NEW) { in proc0_post()
H A Dkern_procctl.c239 if (p2->p_state == PRS_ZOMBIE) in reap_getpids()
1273 if (p->p_state == PRS_NEW || in kern_procctl()
1274 p->p_state == PRS_ZOMBIE || in kern_procctl()
H A Dkern_rctl.c543 if (p->p_state != PRS_NORMAL) in rctl_enforce()
570 if (p->p_state != PRS_NORMAL) in rctl_enforce()
596 if (p->p_state != PRS_NORMAL) in rctl_enforce()
668 if (p->p_state != PRS_NORMAL) in rctl_enforce()
H A Dkern_kthread.c283 if (p->p_state == PRS_ZOMBIE || (p->p_flag2 & P2_WEXIT) != 0) { in kthread_add1()
H A Dkern_synch.c553 KASSERT(td->td_proc->p_state != PRS_ZOMBIE, in mi_switch()
H A Dkern_sig.c1814 (notself && p == arg->td->td_proc) || p->p_state == PRS_NEW) in killpg1_sendsig()
1828 (p == ctx->td->td_proc) || p->p_state == PRS_NEW) in kill_processes_prison_cb()
2083 if (p->p_state == PRS_NORMAL && in pgsignal()
2303 if (p->p_state == PRS_ZOMBIE) { in tdsendsignal()
2506 } else if (p->p_state == PRS_NORMAL) { in tdsendsignal()
4283 if (p->p_state == PRS_NORMAL && in pgsigio()
H A Dkern_clock.c266 if (p->p_state == PRS_NEW) { in deadlkres()
H A Dkern_prot.c2713 MPASS(p->p_state == PRS_ZOMBIE || p->p_state == PRS_NEW); in proc_unset_cred()
/freebsd/sys/ddb/
H A Ddb_ps.c159 switch (p->p_state) { in db_ps_proc()
220 if (p->p_flag & P_WEXIT && p->p_state != PRS_ZOMBIE) in db_ps_proc()
448 switch (p->p_state) { in DB_SHOW_COMMAND()
459 db_printf("??? (%#x)\n", p->p_state); in DB_SHOW_COMMAND()
/freebsd/lib/libkvm/
H A Dkvm_proc.c142 if (proc.p_state == PRS_NEW) in kvm_proclist()
374 if (proc.p_state != PRS_ZOMBIE) { in kvm_proclist()
384 if ((proc.p_state != PRS_ZOMBIE) && mtd.td_wmesg) in kvm_proclist()
396 if ((proc.p_state != PRS_ZOMBIE) && in kvm_proclist()
410 if (proc.p_state != PRS_ZOMBIE) { in kvm_proclist()
418 if (proc.p_state == PRS_NORMAL) { in kvm_proclist()
/freebsd/tools/debugscripts/
H A Dgdbinit.kernel208 if ($proc.p_state)
212 $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \
250 if ($proc.p_state)
256 $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \
/freebsd/sys/dev/wg/
H A Dif_wg.c163 } p_state; member
1517 atomic_store_rel_int(&pkt->p_state, state); in wg_encrypt()
1589 atomic_store_rel_int(&pkt->p_state, state); in wg_decrypt()
1645 if (atomic_load_acq_int(&pkt->p_state) != WG_PACKET_CRYPTED) in wg_deliver_out()
1713 if (atomic_load_acq_int(&pkt->p_state) != WG_PACKET_CRYPTED) in wg_deliver_in()
1894 pkt->p_state = WG_PACKET_UNCRYPTED; in wg_queue_both()
1913 pkt->p_state = WG_PACKET_DEAD; in wg_queue_both()
1926 if (serial->q_len > 0 && STAILQ_FIRST(&serial->q_queue)->p_state != WG_PACKET_UNCRYPTED) { in wg_queue_dequeue_serial()
/freebsd/sys/vm/
H A Dvm_meter.c188 if (p->p_state != PRS_NEW) { in vmtotal()
/freebsd/sys/compat/linux/
H A Dlinux_misc.c2832 if (p->p_state == PRS_NORMAL && in linux_ioprio_get()
2849 if (p->p_state == PRS_NORMAL && in linux_ioprio_get()
2936 if (p->p_state == PRS_NORMAL && in linux_ioprio_set()
2955 if (p->p_state == PRS_NORMAL && in linux_ioprio_set()
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c205 if (p->p_state != PRS_NORMAL || (p->p_flag & (P_INEXEC | in tmpfs_all_rw_maps()
/freebsd/contrib/ofed/opensm/include/iba/
H A Dib_types.h7728 OUT uint8_t * const p_state) in ib_member_get_scope_state() argument
7732 if (p_state) in ib_member_get_scope_state()
7733 *p_state = (uint8_t) (scope_state & 0x0f); in ib_member_get_scope_state()

12