Searched refs:ctl_fd (Results 1 – 2 of 2) sorted by relevance
99 unique_fd ctl_fd( in preAllocateLoopDevices() local101 if (ctl_fd.get() == -1) { in preAllocateLoopDevices()112 int ret = ioctl(ctl_fd.get(), LOOP_CTL_ADD, id); in preAllocateLoopDevices()132 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC)); in createLoopDevice() local133 if (ctl_fd.get() == -1) { in createLoopDevice()137 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in createLoopDevice()
55 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC)); in create() local56 if (ctl_fd.get() == -1) { in create()61 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in create()