Home
last modified time | relevance | path

Searched refs:device_fd (Results 1 – 4 of 4) sorted by relevance

/system/extras/tests/uevents/
Duevents.c24 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/
DLoop.cpp212 int device_fd; in destroyByDevice() local
214 device_fd = open(loopDevice, O_RDONLY); in destroyByDevice()
215 if (device_fd < 0) { in destroyByDevice()
220 if (ioctl(device_fd, LOOP_CLR_FD, 0) < 0) { in destroyByDevice()
222 close(device_fd); in destroyByDevice()
226 close(device_fd); in destroyByDevice()
/system/core/toolbox/
Dmount.c172 int file_fd, device_fd; in do_mount() local
182 device_fd = open(loopdev, flags); in do_mount()
183 if (device_fd < 0) { in do_mount()
188 if (ioctl(device_fd, LOOP_SET_FD, file_fd) < 0) { in do_mount()
191 close(device_fd); in do_mount()
196 close(device_fd); in do_mount()
/system/core/init/
Ddevices.c60 static int device_fd = -1; variable
950 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) { in handle_device_fd()
1039 device_fd = uevent_open_socket(256*1024, true); in device_init()
1040 if(device_fd < 0) in device_init()
1043 fcntl(device_fd, F_SETFD, FD_CLOEXEC); in device_init()
1044 fcntl(device_fd, F_SETFL, O_NONBLOCK); in device_init()
1062 return device_fd; in get_device_fd()