Searched refs:target_fd (Results 1 – 5 of 5) sorted by relevance
/system/vold/ |
D | Loop.cpp | 69 unique_fd target_fd; in create() local 71 target_fd.reset(open(target.c_str(), O_RDWR | O_CLOEXEC)); in create() 72 if (target_fd.get() != -1) { in create() 77 if (target_fd.get() == -1) { in create() 91 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in create()
|
/system/apex/apexd/ |
D | apexd_loop.cpp | 153 unique_fd target_fd(open(target.c_str(), O_RDONLY | O_CLOEXEC | O_DIRECT)); in createLoopDevice() local 154 if (target_fd.get() == -1) { in createLoopDevice() 163 target_fd.reset(open(target.c_str(), O_RDONLY | O_CLOEXEC)); in createLoopDevice() 164 if (target_fd.get() == -1) { in createLoopDevice() 188 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in createLoopDevice()
|
D | apexservice_test.cpp | 2469 android::base::unique_fd target_fd( in ExecInMountNamespaceOf() local 2471 ASSERT_TRUE(target_fd.get() >= 0); in ExecInMountNamespaceOf() 2473 int res = setns(target_fd.get(), CLONE_NEWNS); in ExecInMountNamespaceOf()
|
/system/bpf/libbpf_android/include/bpf/ |
D | BpfUtils.h | 151 .target_fd = static_cast<__u32>(cg_fd.get()), in attachProgram() 159 .target_fd = static_cast<__u32>(cg_fd.get()), in detachProgram()
|
/system/core/fs_mgr/ |
D | fs_mgr.cpp | 1968 unique_fd target_fd(TEMP_FAILURE_RETRY(open(loop.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0600))); in PrepareZramDevice() local 1969 if (target_fd.get() == -1) { in PrepareZramDevice() 1973 if (fallocate(target_fd.get(), 0, 0, size) < 0) { in PrepareZramDevice() 1981 if (!loop_control.Attach(target_fd.get(), 5s, &device)) { in PrepareZramDevice()
|