make getsysinfo() a system-land call
This commit is contained in:
@@ -6,15 +6,15 @@
|
||||
#include <minix/type.h>
|
||||
|
||||
_PROTOTYPE( int getsysinfo, (endpoint_t who, int what, void *where) );
|
||||
_PROTOTYPE( int minix_getkproctab, (void *pr, int nprocs, int assert));
|
||||
_PROTOTYPE( ssize_t getsysinfo_up, (endpoint_t who, int what, size_t size,
|
||||
void *where));
|
||||
|
||||
#define SIU_LOADINFO 1 /* retrieve load info data */
|
||||
#define SIU_SYSTEMHZ 2 /* retrieve system clock frequency */
|
||||
#define SIU_IDLETSC 3 /* retrieve cumulative idle timestamp count */
|
||||
|
||||
/* Exported system parameters. */
|
||||
/* What system info to retrieve with sysgetinfo(). */
|
||||
#define SI_PROC_TAB 2 /* copy of entire process table */
|
||||
#define SI_DMAP_TAB 3 /* get device <-> driver mappings */
|
||||
#define SI_DATA_STORE 5 /* get copy of data store mappings */
|
||||
#define SI_SUBSCRIPTION 6 /* get copy of data store subscriptions */
|
||||
#define SI_LOADINFO 7 /* get copy of load average structure */
|
||||
#define SI_CALL_STATS 9 /* system call statistics */
|
||||
#define SI_PROCPUB_TAB 11 /* copy of public entries of process table */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user