Lines Matching refs:ioctlfd
159 fh->ioctlfd = -1; in autofs_get_fh()
181 if (ioctl(fh->ioctlfd, AUTOFS_IOC_PROTOVER, &fh->version) < 0) { in autofs_mounted()
189 if (ioctl(fh->ioctlfd, AUTOFS_IOC_SETTIMEOUT, &timeout) < 0) in autofs_mounted()
202 if (fh->ioctlfd < 0) in autofs_get_mp()
203 fh->ioctlfd = open(mp->am_path, O_RDONLY); in autofs_get_mp()
213 if (fh->ioctlfd >= 0) { in autofs_release_mp()
214 close(fh->ioctlfd); in autofs_release_mp()
215 fh->ioctlfd = -1; in autofs_release_mp()
243 if (fh->ioctlfd >= 0) in autofs_release_fh()
244 close(fh->ioctlfd); in autofs_release_fh()
335 send_fail(fh->ioctlfd, p->wait_queue_token); in autofs_lookup_failed()
371 send_fail(fh->ioctlfd, token); in autofs_expire_one()
772 send_ready(fh->ioctlfd, p->wait_queue_token); in autofs_umount_succeeded()
797 send_fail(fh->ioctlfd, p->wait_queue_token); in autofs_umount_failed()
831 send_ready(fh->ioctlfd, p->wait_queue_token); in autofs_mount_succeeded()
855 send_fail(fh->ioctlfd, p->wait_queue_token); in autofs_mount_failed()
885 while (ioctl(fh->ioctlfd, AUTOFS_IOC_EXPIRE_MULTI, &now) == 0); in autofs_timeout_mp_task()
901 while (ioctl(fh->ioctlfd, AUTOFS_IOC_EXPIRE, &pkt) == 0) in autofs_timeout_mp()