Searched refs:ctl_fd (Results 1 – 2 of 2) sorted by relevance
97 unique_fd ctl_fd( in preAllocateLoopDevices() local99 if (ctl_fd.get() == -1) { in preAllocateLoopDevices()110 int ret = ioctl(ctl_fd.get(), LOOP_CTL_ADD, id); in preAllocateLoopDevices()131 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC)); in createLoopDevice() local132 if (ctl_fd.get() == -1) { in createLoopDevice()136 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in createLoopDevice()
51 unique_fd ctl_fd(open("/dev/loop-control", O_RDWR | O_CLOEXEC)); in create() local52 if (ctl_fd.get() == -1) { in create()57 int num = ioctl(ctl_fd.get(), LOOP_CTL_GET_FREE); in create()