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