Lines Matching refs:ioctl_fd
49 int ioctl_fd; member
57 safe_close(data->ioctl_fd); in expire_data_free()
408 static int autofs_protocol(int dev_autofs_fd, int ioctl_fd) { in autofs_protocol() argument
413 assert(ioctl_fd >= 0); in autofs_protocol()
416 param.ioctlfd = ioctl_fd; in autofs_protocol()
424 param.ioctlfd = ioctl_fd; in autofs_protocol()
435 static int autofs_set_timeout(int dev_autofs_fd, int ioctl_fd, usec_t usec) { in autofs_set_timeout() argument
439 assert(ioctl_fd >= 0); in autofs_set_timeout()
442 param.ioctlfd = ioctl_fd; in autofs_set_timeout()
453 static int autofs_send_ready(int dev_autofs_fd, int ioctl_fd, uint32_t token, int status) { in autofs_send_ready() argument
457 assert(ioctl_fd >= 0); in autofs_send_ready()
460 param.ioctlfd = ioctl_fd; in autofs_send_ready()
472 _cleanup_close_ int ioctl_fd = -1; in automount_send_ready() local
482 ioctl_fd = open_ioctl_fd(UNIT(a)->manager->dev_autofs_fd, a->where, a->dev_id); in automount_send_ready()
483 if (ioctl_fd < 0) in automount_send_ready()
484 return ioctl_fd; in automount_send_ready()
503 ioctl_fd, in automount_send_ready()
574 _cleanup_close_ int ioctl_fd = -1; in automount_enter_waiting() local
635 ioctl_fd = open_ioctl_fd(dev_autofs_fd, a->where, st.st_dev); in automount_enter_waiting()
636 if (ioctl_fd < 0) { in automount_enter_waiting()
637 r = ioctl_fd; in automount_enter_waiting()
641 r = autofs_protocol(dev_autofs_fd, ioctl_fd); in automount_enter_waiting()
645 r = autofs_set_timeout(dev_autofs_fd, ioctl_fd, a->timeout_idle_usec); in automount_enter_waiting()
682 assert(data->ioctl_fd >= 0); in expire_thread()
685 param.ioctlfd = data->ioctl_fd; in expire_thread()
709 data->ioctl_fd = -1; in automount_dispatch_expire()
715 data->ioctl_fd = open_ioctl_fd(UNIT(a)->manager->dev_autofs_fd, a->where, a->dev_id); in automount_dispatch_expire()
716 if (data->ioctl_fd < 0) in automount_dispatch_expire()
717 … return log_unit_error_errno(UNIT(a), data->ioctl_fd, "Couldn't open autofs ioctl fd: %m"); in automount_dispatch_expire()