Searched refs:device_fd (Results 1 - 3 of 3) sorted by relevance
/system/core/toolbox/ |
H A D | mount.c | 153 int file_fd, device_fd; local 163 device_fd = open(loopdev, flags); 164 if (device_fd < 0) { 169 if (ioctl(device_fd, LOOP_SET_FD, file_fd) < 0) { 172 close(device_fd); 177 close(device_fd);
|
/system/vold/ |
H A D | Loop.cpp | 212 int device_fd; local 214 device_fd = open(loopDevice, O_RDONLY); 215 if (device_fd < 0) { 220 if (ioctl(device_fd, LOOP_CLR_FD, 0) < 0) { 222 close(device_fd); 226 close(device_fd);
|
/system/core/init/ |
H A D | devices.c | 60 static int device_fd = -1; variable 813 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) { 892 device_fd = uevent_open_socket(64*1024, true); 893 if(device_fd < 0) 896 fcntl(device_fd, F_SETFD, FD_CLOEXEC); 897 fcntl(device_fd, F_SETFL, O_NONBLOCK); 915 return device_fd;
|
Completed in 2133 milliseconds