PM: clean up endpoint info API/ABI

This commit is contained in:
David van Moolenbroek
2009-10-31 14:09:28 +00:00
parent 403764c538
commit 4c263d6002
12 changed files with 26 additions and 45 deletions
+1 -1
View File
@@ -97,7 +97,7 @@
#if 0
#define FREEMEM 106 /* to PM, not used, not implemented */
#endif
#define GETPUID 107 /* to PM: get the uid of a process (endpoint) */
#define GETEPINFO 107 /* to PM: get pid/uid/gid of an endpoint */
#define ADDDMA 108 /* to PM: inform PM about a region of memory
* that is used for bus-master DMA
*/
+4 -4
View File
@@ -121,9 +121,6 @@ _PROTOTYPE( int getgroups, (int _gidsetsize, gid_t _grouplist[]) );
_PROTOTYPE( char *getlogin, (void) );
_PROTOTYPE( pid_t getpgrp, (void) );
_PROTOTYPE( pid_t getpid, (void) );
_PROTOTYPE( pid_t getnpid, (int proc_nr) );
_PROTOTYPE( uid_t getnuid, (int proc_nr) );
_PROTOTYPE( gid_t getngid, (int proc_nr) );
_PROTOTYPE( pid_t getppid, (void) );
_PROTOTYPE( uid_t getuid, (void) );
_PROTOTYPE( int isatty, (int _fd) );
@@ -201,7 +198,6 @@ _PROTOTYPE( int devctl, (int ctl_req, int driver, int device, int style,
int force) );
_PROTOTYPE( int mapdriver5, (char *label, size_t len, int major,
int style, int force) );
_PROTOTYPE( uid_t getpeuid, (endpoint_t ep) );
_PROTOTYPE(int adddma, (endpoint_t proc_e,
phys_bytes start, phys_bytes size) );
_PROTOTYPE(int deldma, (endpoint_t proc_e,
@@ -209,6 +205,10 @@ _PROTOTYPE(int deldma, (endpoint_t proc_e,
_PROTOTYPE(int getdma, (endpoint_t *procp, phys_bytes *basep,
phys_bytes *sizep) );
_PROTOTYPE( pid_t getnpid, (endpoint_t proc_ep) );
_PROTOTYPE( uid_t getnuid, (endpoint_t proc_ep) );
_PROTOTYPE( gid_t getngid, (endpoint_t proc_ep) );
/* For compatibility with other Unix systems */
_PROTOTYPE( int getpagesize, (void) );
_PROTOTYPE( int setgroups, (int ngroups, const gid_t *gidset) );