2006-03-03 14:48:49 +03:00
|
|
|
/*
|
|
|
|
* Copyright 2003-2006, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
2003-01-18 17:04:22 +03:00
|
|
|
#ifndef _KERNEL_NODE_MONITOR_H
|
|
|
|
#define _KERNEL_NODE_MONITOR_H
|
|
|
|
|
|
|
|
|
2006-03-03 14:48:49 +03:00
|
|
|
#include <fs_interface.h>
|
2003-01-18 17:04:22 +03:00
|
|
|
|
|
|
|
|
|
|
|
struct io_context;
|
|
|
|
|
2003-10-17 18:42:45 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-01-18 17:04:22 +03:00
|
|
|
// private kernel API
|
|
|
|
extern status_t remove_node_monitors(struct io_context *context);
|
|
|
|
extern status_t node_monitor_init(void);
|
2006-03-03 14:48:49 +03:00
|
|
|
extern status_t notify_unmount(mount_id device);
|
|
|
|
extern status_t notify_mount(mount_id device, mount_id parentDevice,
|
|
|
|
vnode_id parentDirectory);
|
2003-01-18 17:04:22 +03:00
|
|
|
|
|
|
|
// user-space exported calls
|
2004-06-30 00:12:29 +04:00
|
|
|
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,
|
2003-01-18 17:04:22 +03:00
|
|
|
port_id port, uint32 token);
|
2004-06-30 00:12:29 +04:00
|
|
|
extern status_t _user_stop_watching(dev_t device, ino_t node, uint32 flags,
|
2003-01-18 17:04:22 +03:00
|
|
|
port_id port, uint32 token);
|
|
|
|
|
2003-10-17 18:42:45 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2003-01-18 17:04:22 +03:00
|
|
|
#endif /* _KRENEL_NODE_MONITOR_H */
|