From 08f58535d92a7b87bec18dc12d4c12281db527ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 25 Nov 2004 21:18:54 +0000 Subject: [PATCH] Added syscalls for get_team_usage_info(). git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10243 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/syscalls.h | 6 ++++-- headers/private/kernel/team.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/headers/private/kernel/syscalls.h b/headers/private/kernel/syscalls.h index a3c2445f1d..81f58f08cf 100644 --- a/headers/private/kernel/syscalls.h +++ b/headers/private/kernel/syscalls.h @@ -31,6 +31,7 @@ struct dirent; // NOTE: // * Nothing but those prototypes may live here. // * The arguments of the functions must be named to be processed properly. + #ifdef GEN_SYSCALL_INFOS_PROCESSING #pragma syscalls begin #endif @@ -84,14 +85,15 @@ extern status_t _kern_kill_thread(thread_id thread); extern void _kern_exit_thread(status_t returnValue); extern status_t _kern_wait_for_thread(thread_id thread, status_t *_returnCode); extern bool _kern_has_data(thread_id thread); -extern status_t _kern_send_data(thread_id thread, int32 code, const void *buffer, size_t buffer_size); -extern status_t _kern_receive_data(thread_id *_sender, void *buffer, size_t buffer_size); +extern status_t _kern_send_data(thread_id thread, int32 code, const void *buffer, size_t bufferSize); +extern status_t _kern_receive_data(thread_id *_sender, void *buffer, size_t bufferSize); extern int64 _kern_restore_signal_frame(); extern status_t _kern_get_thread_info(thread_id id, thread_info *info); extern status_t _kern_get_next_thread_info(team_id team, int32 *cookie, thread_info *info); extern status_t _kern_get_team_info(team_id id, team_info *info); extern status_t _kern_get_next_team_info(int32 *cookie, team_info *info); +extern status_t _kern_get_team_usage_info(team_id team, int32 who, team_usage_info *info, size_t size); // signal functions extern int _kern_send_signal(pid_t tid, uint sig); diff --git a/headers/private/kernel/team.h b/headers/private/kernel/team.h index f19a59490a..1b96c6d7b9 100644 --- a/headers/private/kernel/team.h +++ b/headers/private/kernel/team.h @@ -44,6 +44,7 @@ pid_t _user_setsid(void); status_t _user_get_team_info(team_id id, team_info *info); status_t _user_get_next_team_info(int32 *cookie, team_info *info); +status_t _user_get_team_usage_info(team_id team, int32 who, team_usage_info *info, size_t size); // ToDo: please move the "env" setter/getter out of the kernel! int _user_setenv(const char *name, const char *value, int overwrite);