xref: /haiku/headers/private/kernel/fs/node_monitor.h (revision 51978af14a173e7fae0563b562be5603bc652aeb)
1 #ifndef _KERNEL_NODE_MONITOR_H
2 #define _KERNEL_NODE_MONITOR_H
3 /*
4 ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
5 ** Distributed under the terms of the OpenBeOS License.
6 */
7 
8 
9 #include <OS.h>
10 
11 
12 struct io_context;
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 // private kernel API
19 extern status_t remove_node_monitors(struct io_context *context);
20 extern status_t node_monitor_init(void);
21 
22 // user-space exported calls
23 extern status_t user_stop_notifying(port_id port, uint32 token);
24 extern status_t user_start_watching(dev_t device, ino_t node, uint32 flags,
25 					port_id port, uint32 token);
26 extern status_t user_stop_watching(dev_t device, ino_t node, uint32 flags,
27 					port_id port, uint32 token);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif	/* _KRENEL_NODE_MONITOR_H */
34