# 2.11BSD#431 - /usr/src/sys/h/proc.h

##### Variables

    allproc           X
    freeproc          X
    nproc             X
    pidhash           X
    proc              X
    procNPROC         X
    qs                X
    zombproc          X

##### Macros

    PIDHASH           X
    PIDHSZ            X
    P_NOCLDSTOP       X
    P_SELECT          X
    P_SINTR           X
    P_TIMEOUT         X
    P_TRACED          X
    P_WAITED          X
    SIDL              X
    SLOAD             X
    SLOCK             X
    SRUN              X
    SSLEEP            X
    SSTOP             X
    SSWAP             X
    SSYS              X
    SULOCK            X
    SVFDONE           X
    SVFORK            X
    SVFPRNT           X
    SWAIT             X
    SZOMB             X
    S_DATA            X
    S_STACK           X
    _SYS_PROC_H_      X
    p_addr            X
    p_clktim          X
    p_cpu             X
    p_daddr           X
    p_dsize           X
    p_hash            X
    p_link            X
    p_nice            X
    p_pgrp            X
    p_pri             X
    p_ptracesig       X
    p_realtimer       X
    p_ru              X
    p_saddr           X
    p_sigcatch        X
    p_sigignore       X
    p_sigmask         X
    p_slptime         X
    p_ssize           X
    p_textp           X
    p_time            X
    p_wchan           X
    p_xstat           X

##### struct's

    proc              X

       1: /*
       2:  * Copyright (c) 1986 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)proc.h	1.5 (2.11BSD) 1999/9/5
       7:  */
       8:
       9: #ifndef _SYS_PROC_H_
      10: #define _SYS_PROC_H_
      11:
      12: /*
      13:  * One structure allocated per active
      14:  * process. It contains all data needed
      15:  * about the process while the
      16:  * process may be swapped out.
      17:  * Other per process data (user.h)
      18:  * is swapped with the process.
      19:  */
      20: struct  proc {
      21:     struct  proc *p_nxt;    /* linked list of allocated proc slots */
      22:     struct  proc **p_prev;  /* also zombies, and free proc's */
      23:     struct  proc *p_pptr;   /* pointer to process structure of parent */
      24:     short   p_flag;
      25:     short   p_uid;      /* user id, used to direct tty signals */
      26:     short   p_pid;      /* unique process id */
      27:     short   p_ppid;     /* process id of parent */
      28:     long    p_sig;      /* signals pending to this process */
      29:     char    p_stat;
      30:     char    p_dummy;    /* room for one more, here */
      31:
      32:     /*
      33: 	 * Union to overwrite information no longer needed by ZOMBIED
      34: 	 * process with exit information for the parent process.  The
      35: 	 * two structures have been carefully set up to use the same
      36: 	 * amount of memory.  Must be very careful that any values in
      37: 	 * p_alive are not used for zombies (zombproc).
      38: 	 */
      39:     union {
      40:         struct {
      41:         char    P_pri;      /* priority, negative is high */
      42:         char    P_cpu;      /* cpu usage for scheduling */
      43:         char    P_time;     /* resident time for scheduling */
      44:         char    P_nice;     /* nice for cpu usage */
      45:         char    P_slptime;  /* secs sleeping */
      46:         char    P_ptracesig;    /* used between parent & traced child */
      47:         struct proc *P_hash;    /* hashed based on p_pid */
      48:         long    P_sigmask;  /* current signal mask */
      49:         long    P_sigignore;    /* signals being ignored */
      50:         long    P_sigcatch; /* signals being caught by user */
      51:         short   P_pgrp;     /* name of process group leader */
      52:         struct  proc *P_link;   /* linked list of running processes */
      53:         memaddr P_addr;     /* address of u. area */
      54:         memaddr P_daddr;    /* address of data area */
      55:         memaddr P_saddr;    /* address of stack area */
      56:         size_t  P_dsize;    /* size of data area (clicks) */
      57:         size_t  P_ssize;    /* size of stack segment (clicks) */
      58:         caddr_t P_wchan;    /* event process is awaiting */
      59:         struct  text *P_textp;  /* pointer to text structure */
      60:         struct  k_itimerval P_realtimer;
      61:         } p_alive;
      62:         struct {
      63:         short   P_xstat;    /* exit status for wait */
      64:         struct k_rusage P_ru;   /* exit information */
      65:         } p_dead;
      66:     } p_un;
      67: };
      68: #define p_pri       p_un.p_alive.P_pri
      69: #define p_cpu       p_un.p_alive.P_cpu
      70: #define p_time      p_un.p_alive.P_time
      71: #define p_nice      p_un.p_alive.P_nice
      72: #define p_slptime   p_un.p_alive.P_slptime
      73: #define p_hash      p_un.p_alive.P_hash
      74: #define p_ptracesig p_un.p_alive.P_ptracesig
      75: #define p_sigmask   p_un.p_alive.P_sigmask
      76: #define p_sigignore p_un.p_alive.P_sigignore
      77: #define p_sigcatch  p_un.p_alive.P_sigcatch
      78: #define p_pgrp      p_un.p_alive.P_pgrp
      79: #define p_link      p_un.p_alive.P_link
      80: #define p_addr      p_un.p_alive.P_addr
      81: #define p_daddr     p_un.p_alive.P_daddr
      82: #define p_saddr     p_un.p_alive.P_saddr
      83: #define p_dsize     p_un.p_alive.P_dsize
      84: #define p_ssize     p_un.p_alive.P_ssize
      85: #define p_wchan     p_un.p_alive.P_wchan
      86: #define p_textp     p_un.p_alive.P_textp
      87: #define p_realtimer p_un.p_alive.P_realtimer
      88: #define p_clktim    p_realtimer.it_value
      89:
      90: #define p_xstat     p_un.p_dead.P_xstat
      91: #define p_ru        p_un.p_dead.P_ru
      92:
      93: #define PIDHSZ      16
      94: #define PIDHASH(pid)    ((pid) & (PIDHSZ - 1))
      95:
      96: #if defined(KERNEL) && !defined(SUPERVISOR)
      97: struct  proc *pidhash[PIDHSZ];
      98: struct  proc *pfind();
      99: struct  proc proc[], *procNPROC;    /* the proc table itself */
     100: struct  proc *freeproc, *zombproc, *allproc, *qs;
     101:             /* lists of procs in various states */
     102: int nproc;
     103: #endif
     104:
     105: /* stat codes */
     106: #define SSLEEP  1       /* awaiting an event */
     107: #define SWAIT   2       /* (abandoned state) */
     108: #define SRUN    3       /* running */
     109: #define SIDL    4       /* intermediate state in process creation */
     110: #define SZOMB   5       /* intermediate state in process termination */
     111: #define SSTOP   6       /* process being traced */
     112:
     113: /* flag codes */
     114: #define SLOAD       0x0001  /* in core */
     115: #define SSYS        0x0002  /* swapper or pager process */
     116: #define SLOCK       0x0004  /* process being swapped out */
     117: #define SSWAP       0x0008  /* save area flag */
     118: #define P_TRACED    0x0010  /* process is being traced */
     119: #define P_WAITED    0x0020  /* another tracing flag */
     120: #define SULOCK      0x0040  /* user settable lock in core */
     121: #define P_SINTR     0x0080  /* sleeping interruptibly */
     122: #define SVFORK      0x0100  /* process resulted from vfork() */
     123: #define SVFPRNT     0x0200  /* parent in vfork, waiting for child */
     124: #define SVFDONE     0x0400  /* parent has released child in vfork */
     125:     /*		0x0800	/* unused */
     126: #define P_TIMEOUT   0x1000  /* tsleep timeout expired */
     127: #define P_NOCLDSTOP 0x2000  /* no SIGCHLD signal to parent */
     128: #define P_SELECT    0x4000  /* selecting; wakeup/waiting danger */
     129:     /*		0x8000	/* unused */
     130:
     131: #define S_DATA  0       /* specified segment */
     132: #define S_STACK 1
     133:
     134: #endif	/* !_SYS_PROC_H_ */

#### Defined variables

allproc defined in line 100; used 20 times

- in /usr/src/sys/sys/kern_exit.c line 131, 241
- in /usr/src/sys/sys/kern_fork.c line 52, 131, 203-206(3)
- in /usr/src/sys/sys/kern_proc.c line 59-61(2)
- in /usr/src/sys/sys/kern_resource.c line 44, 54, 98, 108
- in /usr/src/sys/sys/kern_sig.c line 166, 197
- in /usr/src/sys/sys/kern_synch.c line 37
- in /usr/src/sys/sys/kern_sysctl.c line 855
- in /usr/src/sys/sys/vm_sched.c line 47, 100, 222

freeproc defined in line 100; used 8 times

- in /usr/src/sys/sys/kern_exit.c line 229-230(2)
- in /usr/src/sys/sys/kern_fork.c line 65, 150-153(2)
- in /usr/src/sys/sys/kern_proc.c line 51-53(3)

nproc defined in line 102; used 55 times

- in /usr/src/bin/ps.c line 238-239(2), 819(3), 828
- in /usr/src/libexec/identd/src/kvm.c line 316, 347(2), 356, 363
- in /usr/src/new/crash/crash.c line 272, 493(2), 1227-1237(3)
- in /usr/src/sys/pdp/machdep2.c line 125
- in /usr/src/sys/sys/kern_sysctl.c line 221
- in /usr/src/ucb/PORT/systat/pigs.c line 64, 174-177(2), 183, 201-206(2), 212-213(2), 223
- in /usr/src/ucb/PORT/systat/swap.c line 84, 222-227(2), 233, 243-249(3)
- in /usr/src/ucb/gcore.c line 82-87(4), 105
- in /usr/src/ucb/w.c line 356, 397-398(2), 409
- in /usr/src/usr.sbin/pstat/pstat.c line 359-368(6), 376-387(5)

pidhash defined in line 97; used 3 times

- in /usr/src/sys/sys/kern_exit.c line 113
- in /usr/src/sys/sys/kern_fork.c line 192
- in /usr/src/sys/sys/kern_proc.c line 31

proc defined in line 99; used 16 times

- in /usr/src/bin/ps.c line 243, 249
- in /usr/src/new/crash/crash.c line 1227-1237(4), 1283
- in /usr/src/sys/pdp/machdep2.c line 125
- in /usr/src/sys/sys/init_main.c line 72
- in /usr/src/sys/sys/kern_exit.c line 135-137(2)
- in /usr/src/sys/sys/kern_proc.c line 52
- in /usr/src/sys/sys/kern_sig.c line 253, 496
- in /usr/src/sys/sys/kern_synch.c line 425, 434

procNPROC defined in line 99; used 2 times

- in /usr/src/sys/pdp/machdep2.c line 125
- in /usr/src/sys/sys/kern_proc.c line 52

qs defined in line 100; used 9 times

- in /usr/src/sys/sys/kern_synch.c line 454, 464, 483, 505-511(3), 527-530(3)

zombproc defined in line 100; used 9 times

- in /usr/src/sys/sys/kern_exit.c line 102-105(3), 148, 206
- in /usr/src/sys/sys/kern_fork.c line 55, 146
- in /usr/src/sys/sys/kern_proc.c line 63
- in /usr/src/sys/sys/kern_sysctl.c line 918

#### Defined struct's

proc defined in line 20; used 392 times

- in line 21-23(6), 47-52(4), 97-100(8)
- in /usr/src/bin/ps.c line 48(2), 126(2), 242(2), 248(2), 406(2)
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 192(2)
- in /usr/src/libexec/identd/src/kvm.c line 252(2), 309(2), 319(2), 356(4), 363(2), 372-376(4)
- in /usr/src/new/crash/crash.c line 105(2), 157(2), 417-442(52), 1221(2), 1227-1237(10)
- in /usr/src/new/kermit5.188/ckutio.c line 4098(2), 4128(2), 4137-4140(8)
- in /usr/src/sys/CURLY/param.c line 66(2), 145(2)
- in /usr/src/sys/GENERIC/param.c line 66(2), 145(2)
- in /usr/src/sys/QT/param.c line 66(2), 145(2)
- in /usr/src/sys/conf/param.c line 66(2), 145(2)
- in /usr/src/sys/h/socketvar.h line 59(2)
- in /usr/src/sys/h/sysctl.h line 186-188(4)
- in /usr/src/sys/h/user.h line 45(2)
- in /usr/src/sys/pdp/genassym.c line 25(2)
- in /usr/src/sys/pdp/trap.c line 60(2)
- in /usr/src/sys/pdpuba/dr.c line 33(2)
- in /usr/src/sys/sys/init_main.c line 59(2)
- in /usr/src/sys/sys/kern_clock.c line 38(2), 242(2)
- in /usr/src/sys/sys/kern_descrip.c line 198(2)
- in /usr/src/sys/sys/kern_exec.c line 397(2)
- in /usr/src/sys/sys/kern_exit.c line 51-52(4), 128(2), 185(2), 191(2), 282(2)
- in /usr/src/sys/sys/kern_fork.c line 48(2), 103(2), 192(2)
- in /usr/src/sys/sys/kern_proc.c line 18(2), 27-36(6), 44(2)
- in /usr/src/sys/sys/kern_prot.c line 39(2), 106(2)
- in /usr/src/sys/sys/kern_resource.c line 26(2), 79(2), 124(2)
- in /usr/src/sys/sys/kern_sig.c line 38-41(4), 91(2), 155(2), 190(2), 208(2), 398(2), 543(2), 559(2)
- in /usr/src/sys/sys/kern_sig2.c line 122(2), 177(2), 193(2), 220(2), 263(2), 286(2), 353(2)
- in /usr/src/sys/sys/kern_synch.c line 26(2), 33(2), 79(2), 114-115(4), 204(2), 266-268(4), 288-289(4), 342(2), 387(2), 411-413(4), 496(2), 503(2), 521-523(4)
- in /usr/src/sys/sys/kern_sysctl.c line 842(2), 855(2), 907(2), 941(2), 969(2)
- in /usr/src/sys/sys/kern_time.c line 173(2), 216(2)
- in /usr/src/sys/sys/subr_log.c line 56(2), 204(2)
- in /usr/src/sys/sys/sys_generic.c line 505(2)
- in /usr/src/sys/sys/sys_kern.c line 33(2), 43-47(4)
- in /usr/src/sys/sys/sys_pipe.c line 227(2)
- in /usr/src/sys/sys/sys_process.c line 43(2)
- in /usr/src/sys/sys/tty.c line 541(2), 650(2)
- in /usr/src/sys/sys/tty_pty.c line 44(2), 326(2)
- in /usr/src/sys/sys/uipc_socket.c line 811-816(4)
- in /usr/src/sys/sys/uipc_socket2.c line 231(2), 278(2), 285(2)
- in /usr/src/sys/sys/vm_proc.c line 32(2)
- in /usr/src/sys/sys/vm_sched.c line 36-37(4), 193(2)
- in /usr/src/sys/sys/vm_swap.c line 27(2), 95(2)
- in /usr/src/sys/sys/vm_swp.c line 74(2)
- in /usr/src/ucb/PORT/systat/fetch.c line 34(2), 69(2), 91(2)
- in /usr/src/ucb/PORT/systat/pigs.c line 177(4), 194(2), 201(4), 212(2)
- in /usr/src/ucb/PORT/systat/swap.c line 56(2), 227(4), 243-249(6)
- in /usr/src/ucb/gcore.c line 33(2), 83-87(6), 98(2)
- in /usr/src/ucb/w.c line 353(2)
- in /usr/src/usr.bin/fstat/fstat.c line 97(2), 196-197(4)
- in /usr/src/usr.sbin/pstat/pstat.c line 358-364(8), 376(2)

#### Defined macros

PIDHASH defined in line 94; used 3 times

- in /usr/src/sys/sys/kern_exit.c line 113
- in /usr/src/sys/sys/kern_fork.c line 192
- in /usr/src/sys/sys/kern_proc.c line 31

PIDHSZ defined in line 93; used 2 times

- in line 94-97(2)

P_NOCLDSTOP defined in line 127; used 5 times

- in /usr/src/sys/sys/kern_sig.c line 310, 500
- in /usr/src/sys/sys/kern_sig2.c line 102, 141-143(2)

P_SELECT defined in line 128; used 7 times

- in /usr/src/sys/sys/sys_generic.c line 390, 408-414(3), 433, 522-523(2)

P_SINTR defined in line 121; used 7 times

- in /usr/src/sys/sys/kern_sig.c line 274, 360
- in /usr/src/sys/sys/kern_synch.c line 157, 178
- in /usr/src/sys/sys/vm_sched.c line 107, 238-242(2)

P_TIMEOUT defined in line 126; used 3 times

- in /usr/src/sys/sys/kern_synch.c line 179-181(2), 215

P_TRACED defined in line 118; used 18 times

- in /usr/src/sys/sys/kern_exec.c line 88, 606
- in /usr/src/sys/sys/kern_exit.c line 55, 138-139(2), 249
- in /usr/src/sys/sys/kern_sig.c line 222, 240, 281, 322, 417-421(2), 440, 465, 495, 522
- in /usr/src/sys/sys/sys_process.c line 53-58(2)

P_WAITED defined in line 119; used 4 times

- in /usr/src/sys/sys/kern_exit.c line 248-250(2)
- in /usr/src/sys/sys/kern_sig.c line 547
- in /usr/src/sys/sys/sys_process.c line 68

SIDL defined in line 109; used 3 times

- in /usr/src/sys/sys/kern_fork.c line 164, 255
- in /usr/src/sys/sys/kern_sysctl.c line 862

SLOAD defined in line 114; used 30 times

- in /usr/src/bin/ps.c line 411
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 261
- in /usr/src/libexec/identd/src/kvm.c line 265
- in /usr/src/new/crash/crash.c line 1257
- in /usr/src/sys/sys/init_main.c line 75
- in /usr/src/sys/sys/kern_fork.c line 166, 299
- in /usr/src/sys/sys/kern_synch.c line 313, 320, 367-372(2), 465
- in /usr/src/sys/sys/kern_sysctl.c line 987
- in /usr/src/sys/sys/vm_sched.c line 48, 102(2), 145, 229, 241, 257, 263
- in /usr/src/sys/sys/vm_swap.c line 76, 148
- in /usr/src/ucb/PORT/systat/fetch.c line 99
- in /usr/src/ucb/PORT/systat/pigs.c line 215
- in /usr/src/ucb/PORT/systat/swap.c line 94
- in /usr/src/ucb/gcore.c line 110
- in /usr/src/ucb/w.c line 415
- in /usr/src/usr.bin/fstat/fstat.c line 235, 274

SLOCK defined in line 116; used 9 times

- in /usr/src/sys/sys/kern_exit.c line 287, 296
- in /usr/src/sys/sys/vm_sched.c line 102
- in /usr/src/sys/sys/vm_swap.c line 108, 148
- in /usr/src/sys/sys/vm_swp.c line 137, 211
- in /usr/src/sys/sys/vm_text.c line 220, 242

SRUN defined in line 108; used 13 times

- in /usr/src/sys/sys/init_main.c line 74
- in /usr/src/sys/sys/kern_fork.c line 257-259(2), 276
- in /usr/src/sys/sys/kern_synch.c line 136, 162, 312, 366, 455
- in /usr/src/sys/sys/vm_sched.c line 48, 123, 146
- in /usr/src/sys/sys/vm_swap.c line 74

SSLEEP defined in line 106; used 10 times

- in /usr/src/sys/sys/kern_sig.c line 341
- in /usr/src/sys/sys/kern_synch.c line 52, 173, 211, 302-307(2)
- in /usr/src/sys/sys/sys_generic.c line 518
- in /usr/src/sys/sys/vm_sched.c line 106, 123, 238

SSTOP defined in line 111; used 8 times

- in /usr/src/sys/sys/kern_exit.c line 141, 248
- in /usr/src/sys/sys/kern_sig.c line 263, 546
- in /usr/src/sys/sys/kern_synch.c line 52, 302
- in /usr/src/sys/sys/sys_process.c line 57
- in /usr/src/sys/sys/vm_sched.c line 107

SSWAP defined in line 117; used 5 times

- in /usr/src/sys/sys/kern_fork.c line 280
- in /usr/src/sys/sys/kern_synch.c line 490-491(2)
- in /usr/src/sys/sys/vm_proc.c line 94
- in /usr/src/sys/sys/vm_text.c line 269

SSYS defined in line 115; used 7 times

- in /usr/src/sys/sys/init_main.c line 75
- in /usr/src/sys/sys/kern_sig.c line 168
- in /usr/src/sys/sys/vm_sched.c line 102, 223
- in /usr/src/ucb/PORT/systat/fetch.c line 79
- in /usr/src/ucb/PORT/systat/swap.c line 87
- in /usr/src/ucb/gcore.c line 114

SULOCK defined in line 120; used 5 times

- in /usr/src/sys/pdp/kern_pdp.c line 84-86(2)
- in /usr/src/sys/sys/kern_exit.c line 55
- in /usr/src/sys/sys/vm_sched.c line 102
- in /usr/src/sys/sys/vm_swp.c line 87

SVFDONE defined in line 124; used 3 times

- in /usr/src/sys/sys/kern_exit.c line 289, 296
- in /usr/src/sys/sys/kern_fork.c line 309

SVFORK defined in line 122; used 12 times

- in /usr/src/sys/sys/kern_exec.c line 571
- in /usr/src/sys/sys/kern_exit.c line 89, 286
- in /usr/src/sys/sys/kern_fork.c line 295-297(2)
- in /usr/src/sys/sys/kern_sig.c line 306, 406, 421
- in /usr/src/sys/sys/tty.c line 334, 1160, 1349
- in /usr/src/sys/sys/tty_pty.c line 114

SVFPRNT defined in line 123; used 4 times

- in /usr/src/sys/sys/kern_fork.c line 296, 313
- in /usr/src/sys/sys/vm_sched.c line 56-59(2)

SWAIT defined in line 107; never used
SZOMB defined in line 110; used 12 times

- in /usr/src/bin/ps.c line 288, 457
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 257
- in /usr/src/sys/sys/kern_exit.c line 106
- in /usr/src/sys/sys/kern_sysctl.c line 980
- in /usr/src/sys/sys/vm_sched.c line 101, 227
- in /usr/src/ucb/PORT/systat/fetch.c line 73
- in /usr/src/ucb/PORT/systat/swap.c line 85
- in /usr/src/ucb/gcore.c line 112
- in /usr/src/ucb/w.c line 412
- in /usr/src/usr.bin/fstat/fstat.c line 218

S_DATA defined in line 131; used 5 times

- in /usr/src/sys/sys/init_main.c line 243
- in /usr/src/sys/sys/kern_exec.c line 575
- in /usr/src/sys/sys/kern_mman.c line 36
- in /usr/src/sys/sys/vm_proc.c line 37, 90

S_STACK defined in line 132; used 6 times

- in /usr/src/sys/pdp/kern_pdp.c line 128
- in /usr/src/sys/sys/init_main.c line 244
- in /usr/src/sys/sys/kern_exec.c line 585
- in /usr/src/sys/sys/kern_mman.c line 69
- in /usr/src/sys/sys/vm_proc.c line 66, 98

_SYS_PROC_H_ defined in line 10; used 1 times

- in line 9

p_addr defined in line 80; used 32 times

- in /usr/src/bin/ps.c line 412, 418, 448
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 263, 269
- in /usr/src/new/crash/crash.c line 432, 1258, 1265
- in /usr/src/sys/sys/init_main.c line 73
- in /usr/src/sys/sys/kern_exit.c line 96
- in /usr/src/sys/sys/kern_fork.c line 238, 256, 266-267(2)
- in /usr/src/sys/sys/kern_synch.c line 258, 434, 492
- in /usr/src/sys/sys/kern_sysctl.c line 989, 999
- in /usr/src/sys/sys/vm_swap.c line 69-73(3), 137-147(4)
- in /usr/src/ucb/gcore.c line 118
- in /usr/src/ucb/w.c line 416-421(2)
- in /usr/src/usr.bin/fstat/fstat.c line 277, 285
- in /usr/src/usr.sbin/pstat/pstat.c line 403

p_clktim defined in line 88; used 1 times

- in /usr/src/new/crash/crash.c line 441

p_cpu defined in line 69; used 11 times

- in /usr/src/bin/ps.c line 445
- in /usr/src/new/crash/crash.c line 427
- in /usr/src/sys/sys/kern_clock.c line 103-104(2)
- in /usr/src/sys/sys/kern_fork.c line 175
- in /usr/src/sys/sys/kern_synch.c line 57-62(2), 81, 90, 391
- in /usr/src/usr.sbin/pstat/pstat.c line 398

p_daddr defined in line 81; used 27 times

- in /usr/src/bin/ps.c line 413, 419
- in /usr/src/new/crash/crash.c line 433
- in /usr/src/sys/sys/kern_exec.c line 583
- in /usr/src/sys/sys/kern_exit.c line 93
- in /usr/src/sys/sys/kern_fork.c line 236(2), 270-271(3), 289, 302(2)
- in /usr/src/sys/sys/kern_mman.c line 40, 220
- in /usr/src/sys/sys/vm_proc.c line 40, 105
- in /usr/src/sys/sys/vm_swap.c line 62-63(2), 71, 112-114(2), 145
- in /usr/src/ucb/gcore.c line 127
- in /usr/src/ucb/w.c line 417-422(2)
- in /usr/src/usr.sbin/pstat/pstat.c line 405

p_dsize defined in line 83; used 30 times

- in /usr/src/bin/ps.c line 449
- in /usr/src/new/crash/crash.c line 435
- in /usr/src/sys/sys/kern_exit.c line 93, 294
- in /usr/src/sys/sys/kern_fork.c line 183-186(2), 234(2), 242, 271, 289-292(2), 301-303(3)
- in /usr/src/sys/sys/vm_proc.c line 38-39(2)
- in /usr/src/sys/sys/vm_sched.c line 115, 228-230(2), 262-264(2)
- in /usr/src/sys/sys/vm_swap.c line 45, 61-63(3), 102-105(2)
- in /usr/src/ucb/gcore.c line 128
- in /usr/src/usr.sbin/pstat/pstat.c line 406

p_hash defined in line 73; used 4 times

- in /usr/src/sys/sys/kern_exit.c line 113-115(2)
- in /usr/src/sys/sys/kern_fork.c line 194
- in /usr/src/sys/sys/kern_proc.c line 33

p_link defined in line 79; used 19 times

- in /usr/src/new/crash/crash.c line 440
- in /usr/src/sys/sys/kern_synch.c line 143, 275-276(2), 306, 331, 454, 464, 481-483(3), 505-510(2), 528-532(5)
- in /usr/src/usr.sbin/pstat/pstat.c line 408

p_nice defined in line 71; used 22 times

- in /usr/src/bin/ps.c line 447
- in /usr/src/new/crash/crash.c line 428
- in /usr/src/sys/sys/init_main.c line 76
- in /usr/src/sys/sys/kern_clock.c line 173, 252-254(2)
- in /usr/src/sys/sys/kern_fork.c line 169(2)
- in /usr/src/sys/sys/kern_resource.c line 38, 46-47(2), 56-57(2), 137-141(2)
- in /usr/src/sys/sys/kern_sig.c line 239-241(2)
- in /usr/src/sys/sys/kern_synch.c line 57, 392
- in /usr/src/sys/sys/vm_sched.c line 50, 126
- in /usr/src/usr.sbin/pstat/pstat.c line 399

p_pgrp defined in line 78; used 38 times

- in /usr/src/bin/ps.c line 255, 451
- in /usr/src/new/crash/crash.c line 429
- in /usr/src/sys/sys/kern_descrip.c line 201
- in /usr/src/sys/sys/kern_exit.c line 195, 210, 236, 245
- in /usr/src/sys/sys/kern_fork.c line 134, 141-142(3), 168(2)
- in /usr/src/sys/sys/kern_prot.c line 48, 124
- in /usr/src/sys/sys/kern_resource.c line 43-45(2), 97-99(2)
- in /usr/src/sys/sys/kern_sig.c line 162-167(2), 198
- in /usr/src/sys/sys/kern_sysctl.c line 878
- in /usr/src/sys/sys/tty.c line 333-337(2), 547, 654-659(2), 1157-1162(2), 1348-1352(2)
- in /usr/src/sys/sys/tty_pty.c line 111-116(2)
- in /usr/src/sys/sys/tty_tty.c line 61
- in /usr/src/ucb/w.c line 412
- in /usr/src/usr.sbin/pstat/pstat.c line 400

p_pri defined in line 68; used 11 times

- in /usr/src/bin/ps.c line 446
- in /usr/src/new/crash/crash.c line 419
- in /usr/src/sys/sys/kern_sig.c line 378-379(2)
- in /usr/src/sys/sys/kern_synch.c line 63, 141, 370, 397, 465-468(2)
- in /usr/src/usr.sbin/pstat/pstat.c line 393

p_ptracesig defined in line 74; used 8 times

- in /usr/src/sys/sys/kern_exit.c line 254-256(2)
- in /usr/src/sys/sys/kern_sig.c line 309, 435, 447, 499
- in /usr/src/sys/sys/sys_process.c line 186-191(2)

p_realtimer defined in line 87; used 12 times

- in line 88
- in /usr/src/sys/sys/kern_fork.c line 165
- in /usr/src/sys/sys/kern_synch.c line 48-50(4)
- in /usr/src/sys/sys/kern_time.c line 175-176(2), 218-223(4)

p_ru defined in line 91; used 4 times

- in /usr/src/sys/sys/kern_exit.c line 125-126(2), 218-222(2)

p_saddr defined in line 82; used 29 times

- in /usr/src/bin/ps.c line 414, 420
- in /usr/src/new/crash/crash.c line 434
- in /usr/src/sys/sys/kern_exec.c line 586
- in /usr/src/sys/sys/kern_exit.c line 94
- in /usr/src/sys/sys/kern_fork.c line 237(2), 272-273(3), 290, 305(2)
- in /usr/src/sys/sys/kern_mman.c line 71, 221
- in /usr/src/sys/sys/vm_proc.c line 49-52(2), 67, 99
- in /usr/src/sys/sys/vm_swap.c line 66-72(3), 117-119(2), 146
- in /usr/src/ucb/gcore.c line 129
- in /usr/src/ucb/w.c line 418-423(2)
- in /usr/src/usr.sbin/pstat/pstat.c line 404

p_sigcatch defined in line 77; used 12 times

- in /usr/src/new/crash/crash.c line 425
- in /usr/src/sys/sys/kern_exec.c line 407-410(3)
- in /usr/src/sys/sys/kern_exit.c line 233
- in /usr/src/sys/sys/kern_fork.c line 177(2)
- in /usr/src/sys/sys/kern_sig.c line 233
- in /usr/src/sys/sys/kern_sig2.c line 156-162(3), 182

p_sigignore defined in line 76; used 16 times

- in /usr/src/new/crash/crash.c line 424
- in /usr/src/sys/sys/kern_exec.c line 413
- in /usr/src/sys/sys/kern_exit.c line 56, 234
- in /usr/src/sys/sys/kern_fork.c line 178(2)
- in /usr/src/sys/sys/kern_sig.c line 229, 417
- in /usr/src/sys/sys/kern_sig2.c line 155-158(2), 181, 199
- in /usr/src/sys/sys/tty.c line 335, 1158, 1350
- in /usr/src/sys/sys/tty_pty.c line 112

p_sigmask defined in line 75; used 26 times

- in /usr/src/new/crash/crash.c line 423
- in /usr/src/sys/pdp/machdep.c line 150
- in /usr/src/sys/sys/kern_exit.c line 235
- in /usr/src/sys/sys/kern_fork.c line 176(2)
- in /usr/src/sys/sys/kern_sig.c line 231, 405, 457, 573, 591-592(2)
- in /usr/src/sys/sys/kern_sig2.c line 183, 222, 231-237(3), 296-298(2)
- in /usr/src/sys/sys/sys_generic.c line 422-428(3)
- in /usr/src/sys/sys/tty.c line 336, 1159, 1351
- in /usr/src/sys/sys/tty_pty.c line 113
- in /usr/src/usr.sbin/pstat/pstat.c line 410

p_slptime defined in line 72; used 20 times

- in /usr/src/new/crash/crash.c line 442
- in /usr/src/sys/sys/kern_fork.c line 190
- in /usr/src/sys/sys/kern_synch.c line 53-55(3), 83-84(2), 140, 309-311(2), 329, 364
- in /usr/src/sys/sys/sys_process.c line 92
- in /usr/src/sys/sys/vm_sched.c line 110, 116, 244-248(3), 270
- in /usr/src/usr.sbin/pstat/pstat.c line 396

p_ssize defined in line 84; used 32 times

- in /usr/src/bin/ps.c line 449, 899
- in /usr/src/new/crash/crash.c line 436
- in /usr/src/sys/sys/kern_exit.c line 94, 295
- in /usr/src/sys/sys/kern_fork.c line 183-186(2), 235(2), 242, 273, 290-293(2), 304-306(3)
- in /usr/src/sys/sys/vm_proc.c line 47-48(2)
- in /usr/src/sys/sys/vm_sched.c line 115, 228-230(2), 262-264(2)
- in /usr/src/sys/sys/vm_swap.c line 45, 65-67(3), 104-105(2)
- in /usr/src/ucb/gcore.c line 130
- in /usr/src/ucb/w.c line 445
- in /usr/src/usr.sbin/pstat/pstat.c line 406

p_textp defined in line 86; used 32 times

- in /usr/src/new/crash/crash.c line 437
- in /usr/src/sys/sys/kern_fork.c line 170(2), 217-219(3), 294, 307-308(3)
- in /usr/src/sys/sys/kern_mman.c line 222, 264
- in /usr/src/sys/sys/kern_sig.c line 635(2)
- in /usr/src/sys/sys/sys_process.c line 128
- in /usr/src/sys/sys/vm_sched.c line 104(2), 266, 278-284(4)
- in /usr/src/sys/sys/vm_swap.c line 34, 109-110(2)
- in /usr/src/sys/sys/vm_text.c line 91, 129, 175, 214
- in /usr/src/usr.bin/fstat/fstat.c line 300-303(2)
- in /usr/src/usr.sbin/pstat/pstat.c line 409

p_time defined in line 70; used 10 times

- in /usr/src/new/crash/crash.c line 426
- in /usr/src/sys/sys/kern_fork.c line 174
- in /usr/src/sys/sys/kern_synch.c line 38-39(2)
- in /usr/src/sys/sys/vm_sched.c line 50, 126
- in /usr/src/sys/sys/vm_swap.c line 77, 149
- in /usr/src/ucb/PORT/systat/pigs.c line 214
- in /usr/src/usr.sbin/pstat/pstat.c line 397

p_wchan defined in line 85; used 28 times

- in /usr/src/bin/ps.c line 450
- in /usr/src/new/crash/crash.c line 438-439(2), 1249-1250(2)
- in /usr/src/new/kermit5.188/ckutio.c line 4147
- in /usr/src/sys/sys/kern_exit.c line 238
- in /usr/src/sys/sys/kern_fork.c line 189
- in /usr/src/sys/sys/kern_sig.c line 339, 360
- in /usr/src/sys/sys/kern_synch.c line 139, 160-165(2), 209, 272-277(3), 304-305(2)
- in /usr/src/sys/sys/sys_generic.c line 517
- in /usr/src/sys/sys/sys_pipe.c line 241, 252
- in /usr/src/sys/sys/tty.c line 619, 628
- in /usr/src/sys/sys/tty_pty.c line 351, 371
- in /usr/src/sys/sys/uipc_socket2.c line 234
- in /usr/src/usr.sbin/pstat/pstat.c line 407

p_xstat defined in line 90; used 4 times

- in /usr/src/sys/sys/kern_exit.c line 124, 213-214(2), 223

#### Usage of this include

proc.h used 72 times

- in /usr/src/bin/ps.c line 27
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 29
- in /usr/src/libexec/identd/src/kvm.c line 59
- in /usr/src/new/crash/crash.c line 95
- in /usr/src/new/kermit5.188/ckutio.c line 4072, 4078
- in /usr/src/sys/CURLY/param.c line 14
- in /usr/src/sys/GENERIC/param.c line 14
- in /usr/src/sys/QT/param.c line 14
- in /usr/src/sys/conf/param.c line 14
- in /usr/src/sys/h/sysctl.h line 51
- in /usr/src/sys/pdp/conf.c line 16
- in /usr/src/sys/pdp/cons.c line 15
- in /usr/src/sys/pdp/genassym.c line 16
- in /usr/src/sys/pdp/kern_pdp.c line 15
- in /usr/src/sys/pdp/machdep.c line 15
- in /usr/src/sys/pdp/machdep2.c line 16
- in /usr/src/sys/pdp/trap.c line 19
- in /usr/src/sys/pdpuba/dh.c line 34
- in /usr/src/sys/pdpuba/dhu.c line 33
- in /usr/src/sys/pdpuba/dhv.c line 35
- in /usr/src/sys/pdpuba/dr.c line 20
- in /usr/src/sys/pdpuba/dz.c line 25
- in /usr/src/sys/sys/ingreslock.c line 15
- in /usr/src/sys/sys/init_main.c line 16
- in /usr/src/sys/sys/kern_clock.c line 14
- in /usr/src/sys/sys/kern_descrip.c line 11
- in /usr/src/sys/sys/kern_exec.c line 16
- in /usr/src/sys/sys/kern_exit.c line 16
- in /usr/src/sys/sys/kern_fork.c line 16
- in /usr/src/sys/sys/kern_mman.c line 13
- in /usr/src/sys/sys/kern_proc.c line 11
- in /usr/src/sys/sys/kern_prot.c line 15
- in /usr/src/sys/sys/kern_prot2.c line 44
- in /usr/src/sys/sys/kern_resource.c line 11
- in /usr/src/sys/sys/kern_sig.c line 14
- in /usr/src/sys/sys/kern_sig2.c line 57
- in /usr/src/sys/sys/kern_synch.c line 13
- in /usr/src/sys/sys/kern_sysctl.c line 46
- in /usr/src/sys/sys/kern_time.c line 11
- in /usr/src/sys/sys/quota_kern.c line 29
- in /usr/src/sys/sys/quota_subr.c line 18
- in /usr/src/sys/sys/quota_sys.c line 17
- in /usr/src/sys/sys/quota_ufs.c line 18
- in /usr/src/sys/sys/subr_log.c line 29
- in /usr/src/sys/sys/sys_generic.c line 13
- in /usr/src/sys/sys/sys_inode.c line 13
- in /usr/src/sys/sys/sys_kern.c line 16
- in /usr/src/sys/sys/sys_pipe.c line 12
- in /usr/src/sys/sys/sys_process.c line 16
- in /usr/src/sys/sys/tty.c line 13
- in /usr/src/sys/sys/tty_pty.c line 23
- in /usr/src/sys/sys/tty_tb.c line 21
- in /usr/src/sys/sys/tty_tty.c line 15
- in /usr/src/sys/sys/ufs_inode.c line 13
- in /usr/src/sys/sys/ufs_subr.c line 13
- in /usr/src/sys/sys/uipc_socket.c line 18
- in /usr/src/sys/sys/uipc_socket2.c line 18
- in /usr/src/sys/sys/uipc_syscalls.c line 16
- in /usr/src/sys/sys/vm_proc.c line 11
- in /usr/src/sys/sys/vm_sched.c line 11
- in /usr/src/sys/sys/vm_swap.c line 13
- in /usr/src/sys/sys/vm_swp.c line 13
- in /usr/src/sys/sys/vm_text.c line 14
- in /usr/src/ucb/PORT/systat/fetch.c line 14
- in /usr/src/ucb/PORT/systat/pigs.c line 18
- in /usr/src/ucb/PORT/systat/swap.c line 14
- in /usr/src/ucb/PORT/systat/vmstat.c line 25
- in /usr/src/ucb/gcore.c line 15
- in /usr/src/ucb/w.c line 19
- in /usr/src/usr.bin/fstat/fstat.c line 26
- in /usr/src/usr.sbin/pstat/pstat.c line 25

Last modified: 1999-09-06 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1311 |