Searched refs:target_fd (Results 1 – 5 of 5) sorted by relevance
/system/vold/ |
D | Loop.cpp | 65 unique_fd target_fd; in create() local 67 target_fd.reset(open(target.c_str(), O_RDWR | O_CLOEXEC)); in create() 68 if (target_fd.get() != -1) { in create() 73 if (target_fd.get() == -1) { in create() 83 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in create()
|
/system/apex/apexd/ |
D | apexd_loop.cpp | 143 unique_fd target_fd(open(target.c_str(), O_RDONLY | O_CLOEXEC)); in createLoopDevice() local 144 if (target_fd.get() == -1) { in createLoopDevice() 167 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in createLoopDevice()
|
D | apexservice_test.cpp | 1839 android::base::unique_fd target_fd( in ExecInMountNamespaceOf() local 1841 ASSERT_TRUE(target_fd.get() >= 0); in ExecInMountNamespaceOf() 1843 int res = setns(target_fd.get(), CLONE_NEWNS); in ExecInMountNamespaceOf()
|
/system/bpf/libbpf_android/ |
D | BpfUtils.cpp | 189 attr.target_fd = cg_fd; in attachProgram() 199 attr.target_fd = cg_fd; in detachProgram()
|
/system/core/fs_mgr/ |
D | fs_mgr.cpp | 1551 unique_fd target_fd(TEMP_FAILURE_RETRY(open(loop.c_str(), O_RDWR | O_CREAT | O_CLOEXEC, 0600))); in PrepareZramDevice() local 1552 if (target_fd.get() == -1) { in PrepareZramDevice() 1556 if (fallocate(target_fd.get(), 0, 0, size) < 0) { in PrepareZramDevice() 1569 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get())) { in PrepareZramDevice()
|