user.h (72204) | user.h (72376) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)user.h 8.2 (Berkeley) 9/23/93 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * 33 * @(#)user.h 8.2 (Berkeley) 9/23/93 |
34 * $FreeBSD: head/sys/sys/user.h 72204 2001-02-09 08:26:26Z peter $ | 34 * $FreeBSD: head/sys/sys/user.h 72376 2001-02-12 00:20:08Z jake $ |
35 */ 36 37#ifndef _SYS_USER_H_ 38#define _SYS_USER_H_ 39 40#include <machine/pcb.h> 41#ifndef _KERNEL 42/* stuff that *used* to be included by user.h, or is now needed */ --- 25 unchanged lines hidden (view full) --- 68 * space; other entries should be added to the ki_spare space. Always 69 * verify that sizeof(struct kinfo_proc) == KINFO_PROC_SIZE when you are 70 * done. If you change the size of this structure, many programs will stop 71 * working! Once you have added the new field, you will need to add code 72 * to initialize it in two places: kern/kern_proc.c in the function 73 * fill_kinfo_proc and in lib/libkvm/kvm_proc.c in the function kvm_proclist. 74 */ 75#ifdef __alpha__ | 35 */ 36 37#ifndef _SYS_USER_H_ 38#define _SYS_USER_H_ 39 40#include <machine/pcb.h> 41#ifndef _KERNEL 42/* stuff that *used* to be included by user.h, or is now needed */ --- 25 unchanged lines hidden (view full) --- 68 * space; other entries should be added to the ki_spare space. Always 69 * verify that sizeof(struct kinfo_proc) == KINFO_PROC_SIZE when you are 70 * done. If you change the size of this structure, many programs will stop 71 * working! Once you have added the new field, you will need to add code 72 * to initialize it in two places: kern/kern_proc.c in the function 73 * fill_kinfo_proc and in lib/libkvm/kvm_proc.c in the function kvm_proclist. 74 */ 75#ifdef __alpha__ |
76#define KINFO_PROC_SIZE 904 /* the correct size for kinfo_proc */ | 76#define KINFO_PROC_SIZE 912 /* the correct size for kinfo_proc */ |
77#else | 77#else |
78#define KINFO_PROC_SIZE 640 /* the correct size for kinfo_proc */ | 78#define KINFO_PROC_SIZE 644 /* the correct size for kinfo_proc */ |
79#endif 80#define WMESGLEN 8 /* size of returned wchan message */ 81#define MTXNAMELEN 8 /* size of returned mutex name */ 82 83struct kinfo_proc { 84 int ki_structsize; /* size of this structure */ 85 struct pargs *ki_args; /* address of command arguments */ 86 struct proc *ki_paddr; /* address of proc */ --- 35 unchanged lines hidden (view full) --- 122 u_int ki_slptime; /* Time since last blocked */ 123 u_int ki_swtime; /* Time swapped in or out */ 124 u_int64_t ki_runtime; /* Real time in microsec */ 125 struct timeval ki_start; /* starting time */ 126 struct timeval ki_childtime; /* time used by process children */ 127 long ki_flag; /* P_* flags */ 128 long ki_kiflag; /* KI_* flags (below) */ 129 int ki_traceflag; /* Kernel trace points */ | 79#endif 80#define WMESGLEN 8 /* size of returned wchan message */ 81#define MTXNAMELEN 8 /* size of returned mutex name */ 82 83struct kinfo_proc { 84 int ki_structsize; /* size of this structure */ 85 struct pargs *ki_args; /* address of command arguments */ 86 struct proc *ki_paddr; /* address of proc */ --- 35 unchanged lines hidden (view full) --- 122 u_int ki_slptime; /* Time since last blocked */ 123 u_int ki_swtime; /* Time swapped in or out */ 124 u_int64_t ki_runtime; /* Real time in microsec */ 125 struct timeval ki_start; /* starting time */ 126 struct timeval ki_childtime; /* time used by process children */ 127 long ki_flag; /* P_* flags */ 128 long ki_kiflag; /* KI_* flags (below) */ 129 int ki_traceflag; /* Kernel trace points */ |
130 u_char ki_priority; /* Process priority */ 131 u_char ki_usrpri; /* User-priority based on p_cpu */ 132 u_char ki_nativepri; /* Priority before propogation */ | |
133 char ki_stat; /* S* process status */ 134 char ki_nice; /* Process "nice" value */ 135 char ki_lock; /* Process lock (prevent swap) count */ 136 char ki_rqindex; /* Run queue index */ 137 u_char ki_oncpu; /* Which cpu we are on */ 138 u_char ki_lastcpu; /* Last cpu we were on */ 139 char ki_comm[MAXCOMLEN+1]; /* command name */ 140 char ki_wmesg[WMESGLEN+1]; /* wchan message */ 141 char ki_login[MAXLOGNAME+1]; /* setlogin name */ 142 char ki_mtxname[MTXNAMELEN+1]; /* mutex name */ 143 char ki_sparestrings[102]; /* spare string space */ | 130 char ki_stat; /* S* process status */ 131 char ki_nice; /* Process "nice" value */ 132 char ki_lock; /* Process lock (prevent swap) count */ 133 char ki_rqindex; /* Run queue index */ 134 u_char ki_oncpu; /* Which cpu we are on */ 135 u_char ki_lastcpu; /* Last cpu we were on */ 136 char ki_comm[MAXCOMLEN+1]; /* command name */ 137 char ki_wmesg[WMESGLEN+1]; /* wchan message */ 138 char ki_login[MAXLOGNAME+1]; /* setlogin name */ 139 char ki_mtxname[MTXNAMELEN+1]; /* mutex name */ 140 char ki_sparestrings[102]; /* spare string space */ |
144 struct rtprio ki_rtprio; /* Realtime priority */ | |
145 struct rusage ki_rusage; /* process rusage statistics */ 146 long ki_sflag; /* PS_* flags */ | 141 struct rusage ki_rusage; /* process rusage statistics */ 142 long ki_sflag; /* PS_* flags */ |
147 long ki_spare[24]; /* spare constants */ | 143 struct priority ki_pri; /* process priority */ 144 long ki_spare[25]; /* spare constants */ |
148}; 149void fill_kinfo_proc __P((struct proc *, struct kinfo_proc *)); 150 151/* ki_sessflag values */ 152#define KI_CTTY 0x00000001 /* controlling tty vnode active */ 153#define KI_SLEADER 0x00000002 /* session leader */ 154#define KI_MTXBLOCK 0x00000004 /* proc blocked on mutex ki_mtxname */ 155 --- 20 unchanged lines hidden --- | 145}; 146void fill_kinfo_proc __P((struct proc *, struct kinfo_proc *)); 147 148/* ki_sessflag values */ 149#define KI_CTTY 0x00000001 /* controlling tty vnode active */ 150#define KI_SLEADER 0x00000002 /* session leader */ 151#define KI_MTXBLOCK 0x00000004 /* proc blocked on mutex ki_mtxname */ 152 --- 20 unchanged lines hidden --- |