2004-04-22 02:46:35 +04:00
|
|
|
/*
|
2008-09-17 20:27:17 +04:00
|
|
|
* Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de.
|
2004-12-01 00:06:11 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2004-04-22 02:46:35 +04:00
|
|
|
#ifndef _KERNEL_SYSTEM_INFO_H
|
|
|
|
#define _KERNEL_SYSTEM_INFO_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
|
2010-12-16 04:49:52 +03:00
|
|
|
|
2004-12-01 00:06:11 +03:00
|
|
|
struct kernel_args;
|
2004-04-22 02:46:35 +04:00
|
|
|
|
2004-12-01 00:06:11 +03:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2007-05-19 19:36:32 +04:00
|
|
|
|
2010-12-16 04:49:52 +03:00
|
|
|
status_t system_info_init(struct kernel_args *args);
|
|
|
|
status_t system_notifications_init();
|
2011-05-09 00:02:42 +04:00
|
|
|
const char* get_haiku_revision(void);
|
2010-12-16 04:49:52 +03:00
|
|
|
|
2013-12-16 06:58:43 +04:00
|
|
|
status_t _user_get_system_info(system_info *userInfo);
|
|
|
|
status_t _user_get_cpu_info(uint32 firstCPU, uint32 cpuCount, cpu_info* info);
|
|
|
|
status_t _user_get_cpu_topology_info(cpu_topology_node_info* topologyInfos,
|
|
|
|
uint32* topologyInfoCount);
|
|
|
|
|
2010-12-16 04:49:52 +03:00
|
|
|
status_t _user_get_system_info_etc(int32 id, void *buffer,
|
|
|
|
size_t bufferSize);
|
|
|
|
|
2010-12-16 20:01:23 +03:00
|
|
|
status_t _user_start_watching_system(int32 object, uint32 flags, port_id port,
|
|
|
|
int32 token);
|
|
|
|
status_t _user_stop_watching_system(int32 object, uint32 flags, port_id port,
|
|
|
|
int32 token);
|
2010-12-16 04:49:52 +03:00
|
|
|
|
2004-04-22 02:46:35 +04:00
|
|
|
|
2004-12-01 00:06:11 +03:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2010-12-16 04:49:52 +03:00
|
|
|
|
2008-09-17 20:27:17 +04:00
|
|
|
#endif /* _KERNEL_SYSTEM_INFO_H */
|