Home
last modified time | relevance | path

Searched refs:LoopControl (Results 1 – 5 of 5) sorted by relevance

/aosp14/system/core/fs_mgr/libdm/include/libdm/
H A Dloop_control.h28 class LoopControl final {
30 LoopControl();
52 LoopControl(const LoopControl&) = delete;
53 LoopControl& operator=(const LoopControl&) = delete;
54 LoopControl& operator=(LoopControl&&) = default;
55 LoopControl(LoopControl&&) = default;
91 LoopControl control_;
/aosp14/system/core/fs_mgr/libdm/
H A Dloop_control.cpp35 LoopControl::LoopControl() : control_fd_(-1) { in LoopControl() function in android::dm::LoopControl
42 bool LoopControl::Attach(int file_fd, const std::chrono::milliseconds& timeout_ms, in Attach()
81 bool LoopControl::Detach(const std::string& loopdev) const { in Detach()
101 bool LoopControl::FindFreeLoopDevice(std::string* loopdev) const { in FindFreeLoopDevice()
115 bool LoopControl::EnableDirectIo(int fd) { in EnableDirectIo()
136 bool LoopControl::SetAutoClearStatus(int fd) { in SetAutoClearStatus()
H A Dloop_control_test.cpp52 TEST(libdm, LoopControl) { in TEST() argument
/aosp14/system/core/fs_mgr/libfiemap/
H A Dimage_manager.cpp46 using android::dm::LoopControl;
333 static bool CreateLoopDevice(LoopControl& control, const std::string& file, in CreateLoopDevice()
351 AutoDetachLoopDevices(LoopControl& control, const std::vector<std::string>& devices) in AutoDetachLoopDevices()
364 LoopControl& control_;
450 if (!LoopControl::EnableDirectIo(fd)) { in OptimizeLoopDevices()
470 LoopControl control; in MapWithLoopDevice()
594 std::optional<LoopControl> loop; in UnmapImageDevice()
/aosp14/system/core/fs_mgr/
H A Dfs_mgr.cpp109 using android::dm::LoopControl;
2068 LoopControl loop_control; in PrepareZramBackingDevice()
2086 if (!LoopControl::SetAutoClearStatus(loop_fd.get())) { in PrepareZramBackingDevice()
2089 if (!LoopControl::EnableDirectIo(loop_fd.get())) { in PrepareZramBackingDevice()