haiku/headers/private/kernel/ksystem_info.h
Ingo Weinhold d2bf328d72 Implemented a generic system watching mechanism with a userland API. Currently
only a few events can be watched (team creation/deletion/exec, thread creation/
deletion/name changes). The functions start_system_watching()/
stop_system_watching start/stop watching events.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39862 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-12-16 01:49:52 +00:00

40 lines
798 B
C

/*
* Copyright 2004-2008, Axel Dörfler, axeld@pinc-software.de.
* Distributed under the terms of the MIT License.
*/
#ifndef _KERNEL_SYSTEM_INFO_H
#define _KERNEL_SYSTEM_INFO_H
#include <OS.h>
struct kernel_args;
#ifdef __cplusplus
extern "C" {
#endif
status_t system_info_init(struct kernel_args *args);
status_t system_notifications_init();
uint32 get_haiku_revision(void);
status_t _user_get_system_info(system_info *userInfo, size_t size);
status_t _user_get_system_info_etc(int32 id, void *buffer,
size_t bufferSize);
status_t _user_start_system_watching(int32 object, uint32 flags,
port_id port, int32 token);
status_t _user_stop_system_watching(int32 object, uint32 flags,
port_id port, int32 token);
#ifdef __cplusplus
}
#endif
#endif /* _KERNEL_SYSTEM_INFO_H */