/system/apex/apexd/ |
D | apexd_loop.h | 33 unique_fd device_fd; member 38 : device_fd(std::move(fd)), name(name) {} in LoopbackDeviceUniqueFd() 41 : device_fd(std::move(fd.device_fd)), name(std::move(fd.name)) {} in LoopbackDeviceUniqueFd() 44 device_fd = std::move(other.device_fd); 53 void CloseGood() { device_fd.reset(-1); } in CloseGood() 55 int Get() { return device_fd.get(); } in Get()
|
D | apexd_loop.cpp | 70 if (device_fd.get() != -1) { in MaybeCloseBad() 72 if (ioctl(device_fd.get(), LOOP_CLR_FD) == -1) { in MaybeCloseBad() 324 Result<void> ConfigureLoopDevice(const int device_fd, const std::string& target, in ConfigureLoopDevice() argument 338 if (ioctl(device_fd, LOOP_CONFIGURE, &config) == -1 && errno == EBADF) { in ConfigureLoopDevice() 391 if (ioctl(device_fd, LOOP_CONFIGURE, &config) == -1) { in ConfigureLoopDevice() 397 if (ioctl(device_fd, LOOP_SET_FD, target_fd.get()) == -1) { in ConfigureLoopDevice() 401 if (ioctl(device_fd, LOOP_SET_STATUS64, &li) == -1) { in ConfigureLoopDevice() 405 if (ioctl(device_fd, BLKFLSBUF, 0) == -1) { in ConfigureLoopDevice() 429 if (ioctl(device_fd, LOOP_SET_BLOCK_SIZE, 4096) == -1) { in ConfigureLoopDevice() 497 CHECK_NE(loop_device->device_fd.get(), -1); in CreateLoopDevice() [all …]
|
D | apexd_test_utils.h | 337 if (ioctl(loop_device->device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in CreateLoopDeviceForTest() 340 if (ioctl(loop_device->device_fd.get(), LOOP_SET_STATUS64, &li) == -1) { in CreateLoopDeviceForTest()
|
/system/extras/tests/uevents/ |
D | uevents.c | 24 int device_fd; in main() local 29 device_fd = uevent_open_socket(64*1024, true); in main() 30 if(device_fd < 0) in main() 33 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) { in main()
|
/system/vold/ |
D | Loop.cpp | 85 unique_fd device_fd(open(out_device.c_str(), O_RDWR | O_CLOEXEC)); in create() local 86 if (device_fd.get() == -1) { in create() 91 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in create() 99 if (ioctl(device_fd.get(), LOOP_SET_STATUS64, &li) == -1) { in create() 108 int device_fd; in destroyByDevice() local 110 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); in destroyByDevice() 111 if (device_fd < 0) { in destroyByDevice() 116 if (ioctl(device_fd, LOOP_CLR_FD, 0) < 0) { in destroyByDevice() 118 close(device_fd); in destroyByDevice() 122 close(device_fd); in destroyByDevice()
|
D | AppFuseUtil.cpp | 51 static android::status_t Mount(int device_fd, const std::string& path) { in Mount() argument 60 device_fd); in Mount() 74 int device_fd) { in RunCommand() argument 81 return Mount(device_fd, path); in RunCommand() 105 int MountAppFuse(uid_t uid, int mountId, android::base::unique_fd* device_fd) { in MountAppFuse() argument 129 device_fd->reset(open("/dev/fuse", O_RDWR)); in MountAppFuse() 130 if (device_fd->get() == -1) { in MountAppFuse() 136 return RunCommand("mount", uid, path, device_fd->get()); in MountAppFuse()
|
D | Checkpoint.cpp | 564 void restoreSector(int device_fd, Used_Sectors& used_sectors, std::vector<char>& ls_buffer, in restoreSector() argument 571 fsync(device_fd); in restoreSector() 572 lseek64(device_fd, 0, SEEK_SET); in restoreSector() 575 write(device_fd, &ls_buffer[0], ls.block_size); in restoreSector() 576 fsync(device_fd); in restoreSector() 590 lseek64(device_fd, le->source * kSectorSize, SEEK_SET); in restoreSector() 591 write(device_fd, &buffer[0], le->size); in restoreSector() 594 fsync(device_fd); in restoreSector() 601 std::vector<char> relocatedRead(int device_fd, Relocations const& relocations, bool validating, in relocatedRead() argument 606 if (lseek64(device_fd, offset, SEEK_SET) != offset) { in relocatedRead() [all …]
|
D | AppFuseUtil.h | 27 int MountAppFuse(uid_t uid, int mountId, android::base::unique_fd* device_fd);
|
D | VolumeManager.h | 199 int mountAppFuse(uid_t uid, int mountId, android::base::unique_fd* device_fd);
|
D | VolumeManager.cpp | 1190 int VolumeManager::mountAppFuse(uid_t uid, int mountId, unique_fd* device_fd) { in mountAppFuse() argument 1191 return android::vold::MountAppFuse(uid, mountId, device_fd); in mountAppFuse()
|