Searched refs:loop_fd (Results 1 – 3 of 3) sorted by relevance
/system/core/fs_mgr/libdm/ |
D | loop_control.cpp | 46 … android::base::unique_fd loop_fd(TEMP_FAILURE_RETRY(open(loopdev->c_str(), O_RDWR | O_CLOEXEC))); in Attach() local 47 if (loop_fd < 0) { in Attach() 52 int rc = ioctl(loop_fd, LOOP_SET_FD, file_fd); in Attach() 66 android::base::unique_fd loop_fd(TEMP_FAILURE_RETRY(open(loopdev.c_str(), O_RDWR | O_CLOEXEC))); in Detach() local 67 if (loop_fd < 0) { in Detach() 72 int rc = ioctl(loop_fd, LOOP_CLR_FD, 0); in Detach()
|
D | loop_control_test.cpp | 60 unique_fd loop_fd(open(loop.device().c_str(), O_RDWR)); in TEST() local 61 ASSERT_GE(loop_fd, 0); in TEST() 62 ASSERT_TRUE(android::base::ReadFully(loop_fd, buffer, sizeof(buffer))); in TEST()
|
/system/core/fs_mgr/ |
D | fs_mgr.cpp | 1538 unique_fd loop_fd(TEMP_FAILURE_RETRY(open("/dev/loop-control", O_RDWR | O_CLOEXEC))); in PrepareZramDevice() local 1539 if (loop_fd.get() == -1) { in PrepareZramDevice() 1544 int num = ioctl(loop_fd.get(), LOOP_CTL_GET_FREE); in PrepareZramDevice()
|