Searched refs:device_fd (Results 1 - 6 of 6) sorted by relevance
/system/extras/tests/uevents/ |
H A D | uevents.c | 24 int device_fd; local 29 device_fd = uevent_open_socket(64*1024, true); 30 if(device_fd < 0) 33 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) {
|
/system/vold/ |
H A D | Loop.cpp | 69 unique_fd device_fd(open(out_device.c_str(), O_RDWR | O_CLOEXEC)); 70 if (device_fd.get() == -1) { 75 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { 83 if (ioctl(device_fd.get(), LOOP_SET_STATUS64, &li) == -1) { 92 int device_fd; local 94 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); 95 if (device_fd < 0) { 100 if (ioctl(device_fd, LOOP_CLR_FD, 0) < 0) { 102 close(device_fd); 106 close(device_fd); [all...] |
H A D | VolumeManager.cpp | 670 static android::status_t mountInNamespace(uid_t uid, int device_fd, const std::string& path) { argument 682 device_fd, 701 int device_fd) { 767 _exit(mountInNamespace(uid, device_fd, path)); 825 android::base::unique_fd* device_fd) { 843 device_fd->reset(open("/dev/fuse", O_RDWR)); // not O_CLOEXEC 844 if (device_fd->get() == -1) { 850 return runCommandInNamespace("mount", uid, pid, path, device_fd->get()); 863 return runCommandInNamespace("unmount", uid, pid, path, -1 /* device_fd */); 697 runCommandInNamespace(const std::string& command, uid_t uid, pid_t pid, const std::string& path, int device_fd) argument 824 mountAppFuse(uid_t uid, pid_t pid, int mountId, android::base::unique_fd* device_fd) argument
|
H A D | VolumeManager.h | 128 int mountAppFuse(uid_t uid, pid_t pid, int mountId, android::base::unique_fd* device_fd);
|
/system/core/adb/ |
H A D | commandline.cpp | 858 unique_fd device_fd(adb_connect(service, &error)); 859 if (device_fd < 0) { 868 adb_setsockopt(device_fd, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(opt)); 875 if (!ReadFdExactly(device_fd, buf, 8)) { 910 if (!WriteFdExactly(device_fd, buf, to_write)) { 911 adb_status(device_fd, &error);
|
/system/core/libbacktrace/ |
H A D | backtrace_test.cpp | 1557 android::base::unique_fd device_fd(open("/dev/zero", O_RDONLY | O_CLOEXEC)); 1559 *device_map = mmap(nullptr, 1024, PROT_READ, MAP_PRIVATE, device_fd, 0);
|
Completed in 113 milliseconds