xref: /haiku/headers/private/kernel/ksystem_info.h (revision d0f2d8282f3f59a1af7fe2d340d2af0cb36a9b20)
1ca7cb625SAxel Dörfler /*
2ca7cb625SAxel Dörfler  * Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de.
3ca7cb625SAxel Dörfler  * Distributed under the terms of the MIT License.
4ca7cb625SAxel Dörfler  */
5ca7cb625SAxel Dörfler #ifndef _KERNEL_SYSTEM_INFO_H
6ca7cb625SAxel Dörfler #define _KERNEL_SYSTEM_INFO_H
7ca7cb625SAxel Dörfler 
8ca7cb625SAxel Dörfler 
9ca7cb625SAxel Dörfler #include <OS.h>
10ca7cb625SAxel Dörfler 
11d2bf328dSIngo Weinhold 
12ca7cb625SAxel Dörfler struct kernel_args;
13ca7cb625SAxel Dörfler 
14ca7cb625SAxel Dörfler 
15ca7cb625SAxel Dörfler #ifdef __cplusplus
16ca7cb625SAxel Dörfler extern "C" {
17ca7cb625SAxel Dörfler #endif
18ca7cb625SAxel Dörfler 
19ca7cb625SAxel Dörfler 
20d2bf328dSIngo Weinhold status_t system_info_init(struct kernel_args *args);
21d2bf328dSIngo Weinhold status_t system_notifications_init();
226250297aSOliver Tappe const char* get_haiku_revision(void);
23d2bf328dSIngo Weinhold 
24*1bc7045fSPawel Dziepak status_t _user_get_system_info(system_info *userInfo);
25*1bc7045fSPawel Dziepak status_t _user_get_cpu_info(uint32 firstCPU, uint32 cpuCount, cpu_info* info);
26*1bc7045fSPawel Dziepak status_t _user_get_cpu_topology_info(cpu_topology_node_info* topologyInfos,
27*1bc7045fSPawel Dziepak 				uint32* topologyInfoCount);
28*1bc7045fSPawel Dziepak 
29d2bf328dSIngo Weinhold status_t _user_get_system_info_etc(int32 id, void *buffer,
30ca7cb625SAxel Dörfler 			size_t bufferSize);
31ca7cb625SAxel Dörfler 
32d23cadceSIngo Weinhold status_t _user_start_watching_system(int32 object, uint32 flags, port_id port,
33d23cadceSIngo Weinhold 			int32 token);
34d23cadceSIngo Weinhold status_t _user_stop_watching_system(int32 object, uint32 flags, port_id port,
35d23cadceSIngo Weinhold 			int32 token);
36d2bf328dSIngo Weinhold 
37d2bf328dSIngo Weinhold 
38ca7cb625SAxel Dörfler #ifdef __cplusplus
39ca7cb625SAxel Dörfler }
40ca7cb625SAxel Dörfler #endif
41ca7cb625SAxel Dörfler 
42d2bf328dSIngo Weinhold 
43ca7cb625SAxel Dörfler #endif	/* _KERNEL_SYSTEM_INFO_H */
44