Home
last modified time | relevance | path

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

/system/core/fs_mgr/libdm/
Dloop_control.cpp58 android::base::unique_fd loop_fd( in Attach() local
60 if (loop_fd < 0) { in Attach()
65 if (int rc = ioctl(loop_fd, LOOP_SET_FD, file_fd); rc == 0) { in Attach()
87 android::base::unique_fd loop_fd(TEMP_FAILURE_RETRY(open(loopdev.c_str(), O_RDWR | O_CLOEXEC))); in Detach() local
88 if (loop_fd < 0) { in Detach()
93 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()