0eabb93c0c
Previously, procfs would retrieve the rproc and rprocpub tables from RS in two separate calls. This allowed for a race condition where the tables could change in between the calls, resulting in a panic in procfs under certain circumstances. RS now implements a new method for getsysinfo that allows the retrieval of both tables at once. Change-Id: I5ec22d25898361270c90e805a43fc6d76ad9e29d
20 lines
630 B
C
20 lines
630 B
C
|
|
#ifndef _MINIX_SYSINFO_H
|
|
#define _MINIX_SYSINFO_H
|
|
|
|
#include <minix/endpoint.h>
|
|
#include <minix/type.h>
|
|
|
|
int getsysinfo(endpoint_t who, int what, void *where, size_t size);
|
|
|
|
/* 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_CALL_STATS 9 /* system call statistics */
|
|
#define SI_PROCPUB_TAB 11 /* copy of public entries of process table */
|
|
#define SI_PROCALL_TAB 12 /* copy of both private and public entries */
|
|
|
|
#endif
|
|
|