1*f9bdcca5SAxel Dörfler #ifndef _KERNEL_NODE_MONITOR_H 2*f9bdcca5SAxel Dörfler #define _KERNEL_NODE_MONITOR_H 3*f9bdcca5SAxel Dörfler /* 4*f9bdcca5SAxel Dörfler ** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved. 5*f9bdcca5SAxel Dörfler ** Distributed under the terms of the OpenBeOS License. 6*f9bdcca5SAxel Dörfler */ 7*f9bdcca5SAxel Dörfler 8*f9bdcca5SAxel Dörfler 9*f9bdcca5SAxel Dörfler #include <OS.h> 10*f9bdcca5SAxel Dörfler 11*f9bdcca5SAxel Dörfler 12*f9bdcca5SAxel Dörfler struct io_context; 13*f9bdcca5SAxel Dörfler 14*f9bdcca5SAxel Dörfler // private kernel API 15*f9bdcca5SAxel Dörfler extern status_t remove_node_monitors(struct io_context *context); 16*f9bdcca5SAxel Dörfler extern status_t node_monitor_init(void); 17*f9bdcca5SAxel Dörfler 18*f9bdcca5SAxel Dörfler // user-space exported calls 19*f9bdcca5SAxel Dörfler extern status_t user_stop_notifying(port_id port, uint32 token); 20*f9bdcca5SAxel Dörfler extern status_t user_start_watching(dev_t device, ino_t node, uint32 flags, 21*f9bdcca5SAxel Dörfler port_id port, uint32 token); 22*f9bdcca5SAxel Dörfler extern status_t user_stop_watching(dev_t device, ino_t node, uint32 flags, 23*f9bdcca5SAxel Dörfler port_id port, uint32 token); 24*f9bdcca5SAxel Dörfler 25*f9bdcca5SAxel Dörfler #endif /* _KRENEL_NODE_MONITOR_H */ 26