Message type for {PM,VFS,VM}_GETRUSAGE

Change-Id: I793d2e9fa8eb0562a46ccbd81aae3dbb517671cc
This commit is contained in:
2014-05-19 11:18:20 +02:00
parent 1a943bea52
commit 6c313721d3
6 changed files with 39 additions and 17 deletions

View File

@@ -1239,11 +1239,6 @@
#define SVRCTL_REQ m2_i1 /* int */
#define SVRCTL_ARG m2_p1 /* void * */
/* Field names for the getrusage(2) call. */
#define RU_ENDPT m1_i1 /* endpoint_t */
#define RU_WHO m1_i1 /* int */
#define RU_RUSAGE_ADDR m1_p1 /* struct rusage * */
/*===========================================================================*
* Internal codes used by several services *
*===========================================================================*/

View File

@@ -251,6 +251,14 @@ typedef struct {
} mess_lc_pm_reboot;
_ASSERT_MSG_SIZE(mess_lc_pm_reboot);
typedef struct {
endpoint_t who;
vir_bytes addr;
uint8_t padding[48];
} mess_lc_pm_rusage;
_ASSERT_MSG_SIZE(mess_lc_pm_rusage);
typedef struct {
gid_t gid;
@@ -529,6 +537,13 @@ typedef struct {
} mess_lc_vfs_readwrite;
_ASSERT_MSG_SIZE(mess_lc_vfs_readwrite);
typedef struct {
vir_bytes addr;
uint8_t padding[52];
} mess_lc_vfs_rusage;
_ASSERT_MSG_SIZE(mess_lc_vfs_rusage);
typedef struct {
uint32_t nfds;
fd_set *readfds;
@@ -588,6 +603,13 @@ typedef struct {
} mess_lc_vfs_umount;
_ASSERT_MSG_SIZE(mess_lc_vfs_umount);
typedef struct {
vir_bytes addr;
uint8_t padding[52];
} mess_lc_vm_rusage;
_ASSERT_MSG_SIZE(mess_lc_vm_rusage);
typedef struct {
endpoint_t endpt;
vir_bytes ptr; /* struct exec_info * */
@@ -1289,6 +1311,7 @@ typedef struct {
mess_lc_pm_priority m_lc_pm_priority;
mess_lc_pm_ptrace m_lc_pm_ptrace;
mess_lc_pm_reboot m_lc_pm_reboot;
mess_lc_pm_rusage m_lc_pm_rusage;
mess_lc_pm_setgid m_lc_pm_setgid;
mess_lc_pm_setuid m_lc_pm_setuid;
mess_lc_pm_sig m_lc_pm_sig;
@@ -1316,6 +1339,7 @@ typedef struct {
mess_lc_vfs_pipe2 m_lc_vfs_pipe2;
mess_lc_vfs_readlink m_lc_vfs_readlink;
mess_lc_vfs_readwrite m_lc_vfs_readwrite;
mess_lc_vfs_rusage m_lc_vfs_rusage;
mess_lc_vfs_select m_lc_vfs_select;
mess_lc_vfs_stat m_lc_vfs_stat;
mess_lc_vfs_statvfs1 m_lc_vfs_statvfs1;
@@ -1323,6 +1347,8 @@ typedef struct {
mess_lc_vfs_umask m_lc_vfs_umask;
mess_lc_vfs_umount m_lc_vfs_umount;
mess_lc_vm_rusage m_lc_vm_rusage;
mess_lexec_pm_exec_new m_lexec_pm_exec_new;
mess_li2cdriver_i2c_busc_i2c_exec m_li2cdriver_i2c_busc_i2c_exec;