Home
last modified time | relevance | path

Searched refs:loop_fd (Results 1 – 3 of 3) sorted by relevance

/system/core/fs_mgr/libdm/
Dloop_control.cpp46 … 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()
Dloop_control_test.cpp60 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/
Dfs_mgr.cpp1538 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()