Reserve a pointer "ki_udata" in kinfo_proc as a convenience for userland.
This commit is contained in:
parent
943bb929af
commit
8a3f1adf3b
@ -74,7 +74,7 @@
|
|||||||
* end of kinfo_proc. It may need to be overridden on a platform-specific
|
* end of kinfo_proc. It may need to be overridden on a platform-specific
|
||||||
* basis as new fields are added.
|
* basis as new fields are added.
|
||||||
*/
|
*/
|
||||||
#define KI_NSPARE 17
|
#define KI_NSPARE 16
|
||||||
|
|
||||||
#ifdef __alpha__
|
#ifdef __alpha__
|
||||||
#define KINFO_PROC_SIZE 912
|
#define KINFO_PROC_SIZE 912
|
||||||
@ -84,7 +84,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#ifdef __arm__
|
#ifdef __arm__
|
||||||
#undef KI_NSPARE /* Fewer spare longs on this arch */
|
#undef KI_NSPARE /* Fewer spare longs on this arch */
|
||||||
#define KI_NSPARE 16
|
#define KI_NSPARE 15
|
||||||
#define KINFO_PROC_SIZE 648
|
#define KINFO_PROC_SIZE 648
|
||||||
#endif
|
#endif
|
||||||
#ifdef __ia64__
|
#ifdef __ia64__
|
||||||
@ -92,7 +92,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#ifdef __i386__
|
#ifdef __i386__
|
||||||
#undef KI_NSPARE /* Fewer spare longs on this arch */
|
#undef KI_NSPARE /* Fewer spare longs on this arch */
|
||||||
#define KI_NSPARE 16
|
#define KI_NSPARE 15
|
||||||
#define KINFO_PROC_SIZE 648
|
#define KINFO_PROC_SIZE 648
|
||||||
#endif
|
#endif
|
||||||
#ifdef __powerpc__
|
#ifdef __powerpc__
|
||||||
@ -186,6 +186,7 @@ struct kinfo_proc {
|
|||||||
struct timeval ki_childutime; /* user time used by children */
|
struct timeval ki_childutime; /* user time used by children */
|
||||||
lwpid_t ki_tid; /* XXXKSE thread id */
|
lwpid_t ki_tid; /* XXXKSE thread id */
|
||||||
int ki_numthreads; /* XXXKSE number of threads in total */
|
int ki_numthreads; /* XXXKSE number of threads in total */
|
||||||
|
void *ki_udata; /* User convenience pointer */
|
||||||
long ki_spare[KI_NSPARE]; /* spare room for later growth */
|
long ki_spare[KI_NSPARE]; /* spare room for later growth */
|
||||||
};
|
};
|
||||||
void fill_kinfo_proc(struct proc *, struct kinfo_proc *);
|
void fill_kinfo_proc(struct proc *, struct kinfo_proc *);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user