Searched defs:device_fd (Results 1 - 4 of 4) sorted by relevance

/system/extras/tests/uevents/
H A Duevents.c24 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 DLoop.cpp259 unique_fd device_fd(open(out_device.c_str(), O_RDWR | O_CLOEXEC));
260 if (device_fd.get() == -1) {
265 if (ioctl(device_fd.get(), LOOP_SET_FD, target_fd.get()) == -1) {
274 int device_fd; local
276 device_fd = open(loopDevice, O_RDONLY | O_CLOEXEC);
277 if (device_fd < 0) {
282 if (ioctl(device_fd, LOOP_CLR_FD, 0) < 0) {
284 close(device_fd);
288 close(device_fd);
H A DCommandListener.cpp649 static android::status_t mountInNamespace(uid_t uid, int device_fd, const std::string& path) { argument
661 device_fd,
680 int device_fd) {
753 _exit(mountInNamespace(uid, device_fd, path));
817 unique_fd device_fd(open("/dev/fuse", O_RDWR)); // not O_CLOEXEC
818 if (device_fd.get() == -1) {
826 runCommandInNamespace(command, uid, pid, path, device_fd.get());
832 return sendFd(cli, device_fd.get());
847 runCommandInNamespace(command, uid, pid, path, -1 /* device_fd */);
676 runCommandInNamespace(const std::string& command, uid_t uid, pid_t pid, const std::string& path, int device_fd) argument
/system/core/init/
H A Ddevices.cpp65 static android::base::unique_fd device_fd; variable
930 while ((n = uevent_kernel_multicast_recv(device_fd, msg, UEVENT_MSG_LEN)) > 0) {
1042 if (device_fd == -1) {
1044 device_fd.reset(uevent_open_socket(256 * 1024, true));
1045 if (device_fd == -1) {
1048 fcntl(device_fd, F_SETFL, O_NONBLOCK);
1082 device_fd.reset();
1087 return device_fd;

Completed in 127 milliseconds