37 lines
956 B
C
37 lines
956 B
C
/*
|
|||
|
|
* Copyright 2003-2006, Axel Dörfler, [email protected]. All rights reserved.
|
||
|
|
* Distributed under the terms of the MIT License.
|
||
|
|
*/
|
||
#ifndef _KERNEL_NODE_MONITOR_H
|
|||
|
|
#define _KERNEL_NODE_MONITOR_H
|
||
|
|
|
||
|
|
|
||
#include <fs_interface.h>
|
|||
|
|||
|
|
|
||
|
|
struct io_context;
|
||
|
|
|
||
#ifdef __cplusplus
|
|||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
// private kernel API
|
|||
|
|
extern status_t remove_node_monitors(struct io_context *context);
|
||
|
|
extern status_t node_monitor_init(void);
|
||
extern status_t notify_unmount(mount_id device);
|
|||
|
|
extern status_t notify_mount(mount_id device, mount_id parentDevice,
|
||
|
|
vnode_id parentDirectory);
|
||
|
|||
|
|
// user-space exported calls
|
||
extern status_t _user_stop_notifying(port_id port, uint32 token);
|
|||
|
|
extern status_t _user_start_watching(dev_t device, ino_t node, uint32 flags,
|
||
port_id port, uint32 token);
|
|||
extern status_t _user_stop_watching(dev_t device, ino_t node, uint32 flags,
|
|||
port_id port, uint32 token);
|
|||
|
|
|
||
#ifdef __cplusplus
|
|||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
#endif /* _KRENEL_NODE_MONITOR_H */
|