Searched refs:device_fd (Results 1 – 4 of 4) 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 | 233 int device_fd; in destroyByDevice() local 235 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC); in destroyByDevice() 236 if (device_fd < 0) { in destroyByDevice() 241 if (ioctl(device_fd, LOOP_CLR_FD, 0) < 0) { in destroyByDevice() 243 close(device_fd); in destroyByDevice() 247 close(device_fd); in destroyByDevice()
|
D | CommandListener.cpp | 646 static android::status_t mountInNamespace(uid_t uid, int device_fd, const std::string& path) { in mountInNamespace() argument 658 device_fd, in mountInNamespace() 677 int device_fd) { in runCommandInNamespace() argument 749 _exit(mountInNamespace(uid, device_fd, path)); in runCommandInNamespace() 803 android::vold::ScopedFd device_fd(open("/dev/fuse", O_RDWR)); in runCommand() local 804 if (device_fd.get() == -1) { in runCommand() 812 runCommandInNamespace(command, uid, pid, path, device_fd.get()); in runCommand() 818 return sendFd(cli, device_fd.get()); in runCommand()
|
/system/core/init/ |
D | devices.cpp | 59 static int device_fd = -1; variable 900 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) { in handle_device_fd() 981 device_fd = uevent_open_socket(256*1024, true); in device_init() 982 if (device_fd == -1) { in device_init() 985 fcntl(device_fd, F_SETFL, O_NONBLOCK); in device_init() 1002 return device_fd; in get_device_fd()
|