xref: /haiku/headers/private/kernel/fs/node_monitor.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
1 /*
2  * Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _KERNEL_NODE_MONITOR_H
6 #define _KERNEL_NODE_MONITOR_H
7 
8 
9 #include <fs_interface.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 extern status_t notify_unmount(mount_id device);
22 extern status_t notify_mount(mount_id device, mount_id parentDevice,
23 					vnode_id parentDirectory);
24 
25 // user-space exported calls
26 extern status_t _user_stop_notifying(port_id port, uint32 token);
27 extern status_t _user_start_watching(dev_t device, ino_t node, uint32 flags,
28 					port_id port, uint32 token);
29 extern status_t _user_stop_watching(dev_t device, ino_t node, uint32 flags,
30 					port_id port, uint32 token);
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif	/* _KRENEL_NODE_MONITOR_H */
37