Searched refs:fd_cmp (Results 1 – 1 of 1) sorted by relevance
274 struct fd_cmp { struct287 static int fd_cmp_check_activity(struct fd_cmp *fd_cmp) in fd_cmp_check_activity() argument292 if (fd_cmp == NULL || fd_cmp->fd < 0 || fd_cmp->activity) in fd_cmp_check_activity()296 if (stat(fd_cmp->path, &st) == 0 && st.st_size == 0) in fd_cmp_check_activity()300 fd_cmp->name); in fd_cmp_check_activity()305 static bool fd_cmp_is_active(struct fd_cmp *fd_cmp) in fd_cmp_is_active() argument307 return fd_cmp->fd != -1; in fd_cmp_is_active()310 static int fd_cmp_open_monitor(struct fd_cmp *fd_cmp, int fd, int fd_ep) in fd_cmp_open_monitor() argument315 ep.data.ptr = fd_cmp; in fd_cmp_open_monitor()324 static int fd_cmp_open_std(struct fd_cmp *fd_cmp, in fd_cmp_open_std() argument[all …]