Searched refs:device_fd (Results 1 – 6 of 6) sorted by relevance
/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 | 259 unique_fd device_fd(open(out_device.c_str(), O_RDWR | O_CLOEXEC)); in create() local 260 if (device_fd.get() == -1) { in create() 265 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) { in create() 274 int device_fd; in destroyByDevice() local 276 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); in destroyByDevice() 277 if (device_fd < 0) { in destroyByDevice() 282 if (ioctl(device_fd, LOOP_CLR_FD, 0) < 0) { in destroyByDevice() 284 close(device_fd); in destroyByDevice() 288 close(device_fd); in destroyByDevice()
|
D | CommandListener.cpp | 649 static android::status_t mountInNamespace(uid_t uid, int device_fd, const std::string& path) { in mountInNamespace() argument 661 device_fd, in mountInNamespace() 680 int device_fd) { in runCommandInNamespace() argument 753 _exit(mountInNamespace(uid, device_fd, path)); in runCommandInNamespace() 817 unique_fd device_fd(open("/dev/fuse", O_RDWR)); // not O_CLOEXEC in runCommand() local 818 if (device_fd.get() == -1) { in runCommand() 826 runCommandInNamespace(command, uid, pid, path, device_fd.get()); in runCommand() 832 return sendFd(cli, device_fd.get()); in runCommand()
|
/system/core/init/ |
D | devices.cpp | 65 static android::base::unique_fd device_fd; variable 930 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) { in handle_device_fd_with() 1042 if (device_fd == -1) { in device_init() 1044 device_fd.reset(uevent_open_socket(256 * 1024, true)); in device_init() 1045 if (device_fd == -1) { in device_init() 1048 fcntl(device_fd, F_SETFL, O_NONBLOCK); in device_init() 1082 device_fd.reset(); in device_close() 1087 return device_fd; in get_device_fd()
|
/system/core/adb/ |
D | commandline.cpp | 875 unique_fd device_fd(adb_connect(service, &error)); in adb_sideload_host() local 876 if (device_fd < 0) { in adb_sideload_host() 884 adb_setsockopt(device_fd, SOL_SOCKET, SO_SNDBUF, &opt, sizeof(opt)); in adb_sideload_host() 891 if (!ReadFdExactly(device_fd, buf, 8)) { in adb_sideload_host() 926 if (!WriteFdExactly(device_fd, buf, to_write)) { in adb_sideload_host() 927 adb_status(device_fd, &error); in adb_sideload_host()
|
/system/core/libbacktrace/ |
D | backtrace_test.cpp | 1492 android::base::unique_fd device_fd(open("/dev/zero", O_RDONLY | O_CLOEXEC)); in SetupDeviceMap() local 1494 *device_map = mmap(nullptr, 1024, PROT_READ, MAP_PRIVATE, device_fd, 0); in SetupDeviceMap()
|