Renamed wchan' field to nwchan'; added wchan' which is of type char

1998-08-09  Martin Baulig  <martin@home-of-linux.org>

	* include/glibtop/prockernel.h (glibtop_proc_kernel): Renamed
	`wchan' field to `nwchan'; added `wchan' which is of type `char [40]'.
This commit is contained in:
Martin Baulig
1998-08-09 21:11:18 +00:00
committed by Martin Baulig
parent fd95ab60a4
commit 32c0ced22a
10 changed files with 112 additions and 57 deletions

View File

@@ -34,9 +34,10 @@ __BEGIN_DECLS
#define GLIBTOP_PROC_KERNEL_CMAJ_FLT 4
#define GLIBTOP_PROC_KERNEL_KSTK_ESP 5
#define GLIBTOP_PROC_KERNEL_KSTK_EIP 6
#define GLIBTOP_PROC_KERNEL_WCHAN 7
#define GLIBTOP_PROC_KERNEL_NWCHAN 7
#define GLIBTOP_PROC_KERNEL_WCHAN 8
#define GLIBTOP_MAX_PROC_KERNEL 8
#define GLIBTOP_MAX_PROC_KERNEL 9
typedef struct _glibtop_proc_kernel glibtop_proc_kernel;
@@ -56,8 +57,9 @@ struct _glibtop_proc_kernel
* child processes */
kstk_esp, /* kernel stack pointer */
kstk_eip, /* kernel stack pointer */
wchan; /* address of kernel wait channel
nwchan; /* address of kernel wait channel
* proc is sleeping in */
char wchan [40];
};
#define glibtop_get_proc_kernel(p1, p2) glibtop_get_proc_kernel_l(glibtop_global_server, p1, p2)

View File

@@ -33,6 +33,17 @@ __BEGIN_DECLS
#define GLIBTOP_MAX_PROCLIST 3
/* You can use the folowing constants as the `which' member of
* glibtop_get_proclist () to specify which processes to fetch. */
#define GLIBTOP_KERN_PROC_ALL 0 /* all processes */
#define GLIBTOP_KERN_PROC_PID 1
#define GLIBTOP_KERN_PROC_PGRP 2
#define GLIBTOP_KERN_PROC_SESSION 3
#define GLIBTOP_KERN_PROC_TTY 4
#define GLIBTOP_KERN_PROC_UID 5
#define GLIBTOP_KERN_PROC_RUID 6
typedef struct _glibtop_proclist glibtop_proclist;
struct _glibtop_proclist
@@ -43,7 +54,7 @@ struct _glibtop_proclist
size; /* GLIBTOP_PROCLIST_SIZE */
};
#define glibtop_get_proclist(proclist,method,param) glibtop_get_proclist_l(glibtop_global_server, proclist, method, param)
#define glibtop_get_proclist(proclist,which,arg) glibtop_get_proclist_l(glibtop_global_server, proclist, which, arg)
#if GLIBTOP_SUID_PROCLIST
#define glibtop_get_proclist_r glibtop_get_proclist_p