Lines Matching defs:inotify
72 type inotify struct { struct
73 sync.RWMutex // protects inotify.m map
74 m map[int32]*watched // watch descriptor to watched object
75 fd int32 // inotify file descriptor
76 pipefd []int // pipe's read and write descriptors
77 epfd int // epoll descriptor
78 epes []unix.EpollEvent // epoll events
79 buffer [eventBufferSize]byte // inotify event buffer
80 wg sync.WaitGroup // wait group used to close main loop
81 c chan<- EventInfo // event dispatcher channel
104 func (i *inotify) Watch(path string, e Event) error {
109 func (i *inotify) Rewatch(path string, _, newevent Event) error {
116 func (i *inotify) watch(path string, e Event) (err error) {
149 func (i *inotify) lazyinit() error {
179 func (i *inotify) epollinit() (err error) {
198 func (i *inotify) epollclose() (err error) {
221 func (i *inotify) loop(esch chan<- []*event) {
254 func (i *inotify) read() (es []*event) {
284 func (i *inotify) send(esch <-chan []*event) {
299 func (i *inotify) transform(es []*event) []*event {
378 func (i *inotify) Unwatch(path string) (err error) {
405 func (i *inotify) Close() (err error) {