Added system_info.h header and syscall for get_system_info().

Added support functions in sem.h and port.h that return some stats.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7289 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-04-21 22:46:35 +00:00
parent e08a79330a
commit f6a31876ce
5 changed files with 22 additions and 3 deletions

View File

@ -149,6 +149,7 @@ enum {
SYSCALL_ATOMIC_GET64,
SYSCALL_SET_REAL_TIME_CLOCK,
SYSCALL_DEBUG_OUTPUT,
SYSCALL_GET_SYSTEM_INFO, /* 140 */
};
int syscall_dispatcher(unsigned long call_num, void *arg_buffer, uint64 *call_ret);

View File

@ -12,6 +12,8 @@
status_t port_init(kernel_args *ka);
int delete_owned_ports(team_id owner);
int32 port_max_ports(void);
int32 port_used_ports(void);
// temp: test
void port_test(void);

View File

@ -30,5 +30,7 @@ extern sem_id create_sem_etc(int32 count, const char *name, team_id owner);
extern status_t sem_init(struct kernel_args *ka);
extern int sem_delete_owned_sems(team_id owner);
extern status_t sem_interrupt_thread(struct thread *t);
extern int32 sem_used_sems(void);
extern int32 sem_max_sems(void);
#endif /* KERNEL_SEM_H */

View File

@ -134,9 +134,9 @@ int sys_socket(int, int, int);
int sys_setenv(const char *, const char *, int);
int sys_getenv(const char *, char **);
/* region prototypes */
area_id sys_find_region_by_name(const char *);
/* System informations */
extern status_t _kern_get_system_info(system_info *info, size_t size);
void _kern_debug_output(const char *message);

View File

@ -0,0 +1,14 @@
/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#ifndef _KERNEL_SYSTEM_INFO_H
#define _KERNEL_SYSTEM_INFO_H
#include <OS.h>
extern status_t _user_get_system_info(system_info *userInfo, size_t size);
#endif /* _KRENEL_SYSTEM_INFO_H */