Home
last modified time | relevance | path

Searched refs:fd_cmp (Results 1 – 1 of 1) sorted by relevance

/external/kmod/testsuite/
Dtestsuite.c285 struct fd_cmp { struct
298 static int fd_cmp_check_activity(struct fd_cmp *fd_cmp) in fd_cmp_check_activity() argument
303 if (fd_cmp == NULL || fd_cmp->fd < 0 || fd_cmp->activity) in fd_cmp_check_activity()
307 if (stat(fd_cmp->path, &st) == 0 && st.st_size == 0) in fd_cmp_check_activity()
311 fd_cmp->name); in fd_cmp_check_activity()
316 static bool fd_cmp_is_active(struct fd_cmp *fd_cmp) in fd_cmp_is_active() argument
318 return fd_cmp->fd != -1; in fd_cmp_is_active()
321 static int fd_cmp_open_monitor(struct fd_cmp *fd_cmp, int fd, int fd_ep) in fd_cmp_open_monitor() argument
326 ep.data.ptr = fd_cmp; in fd_cmp_open_monitor()
335 static int fd_cmp_open_std(struct fd_cmp *fd_cmp, in fd_cmp_open_std() argument
[all …]