Classes | Macros | Functions
linux-inotify.c File Reference
#include "uv.h"
#include "uv/tree.h"
#include "internal.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <sys/inotify.h>
#include <sys/types.h>
#include <unistd.h>
Include dependency graph for linux-inotify.c:

Go to the source code of this file.

Classes

struct  watcher_list
 
struct  watcher_root
 

Macros

#define CAST(p)   ((struct watcher_root*)(p))
 

Functions

static int compare_watchers (const struct watcher_list *a, const struct watcher_list *b)
 
static struct watcher_listfind_watcher (uv_loop_t *loop, int wd)
 
static int init_inotify (uv_loop_t *loop)
 
static void maybe_free_watcher_list (struct watcher_list *w, uv_loop_t *loop)
 
void uv__fs_event_close (uv_fs_event_t *handle)
 
int uv__inotify_fork (uv_loop_t *loop, void *old_watchers)
 
static void uv__inotify_read (uv_loop_t *loop, uv__io_t *w, unsigned int revents)
 
int uv_fs_event_init (uv_loop_t *loop, uv_fs_event_t *handle)
 
int uv_fs_event_start (uv_fs_event_t *handle, uv_fs_event_cb cb, const char *path, unsigned int flags)
 
int uv_fs_event_stop (uv_fs_event_t *handle)
 

Macro Definition Documentation

◆ CAST

#define CAST (   p)    ((struct watcher_root*)(p))

Definition at line 47 of file linux-inotify.c.

Function Documentation

◆ compare_watchers()

static int compare_watchers ( const struct watcher_list a,
const struct watcher_list b 
)
static

Definition at line 50 of file linux-inotify.c.

◆ find_watcher()

static struct watcher_list* find_watcher ( uv_loop_t loop,
int  wd 
)
static

Definition at line 151 of file linux-inotify.c.

◆ init_inotify()

static int init_inotify ( uv_loop_t loop)
static

Definition at line 68 of file linux-inotify.c.

◆ maybe_free_watcher_list()

static void maybe_free_watcher_list ( struct watcher_list w,
uv_loop_t loop 
)
static

Definition at line 157 of file linux-inotify.c.

◆ uv__fs_event_close()

void uv__fs_event_close ( uv_fs_event_t handle)

Definition at line 325 of file linux-inotify.c.

◆ uv__inotify_fork()

int uv__inotify_fork ( uv_loop_t loop,
void *  old_watchers 
)

Definition at line 86 of file linux-inotify.c.

◆ uv__inotify_read()

static void uv__inotify_read ( uv_loop_t loop,
uv__io_t w,
unsigned int  revents 
)
static

Definition at line 167 of file linux-inotify.c.

◆ uv_fs_event_init()

int uv_fs_event_init ( uv_loop_t loop,
uv_fs_event_t handle 
)

Definition at line 243 of file linux-inotify.c.

◆ uv_fs_event_start()

int uv_fs_event_start ( uv_fs_event_t handle,
uv_fs_event_cb  cb,
const char *  path,
unsigned int  flags 
)

Definition at line 249 of file linux-inotify.c.

◆ uv_fs_event_stop()

int uv_fs_event_stop ( uv_fs_event_t handle)

Definition at line 305 of file linux-inotify.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:21