Lines Matching refs:sw_fd
2105 int sw_fd = open("/sys/class/switch/hdmi/state", O_RDONLY);2106 if (sw_fd >= 0) {2108 if (read(sw_fd, &value, 1) == 1)2110 close(sw_fd);2112 sw_fd = open("/sys/class/switch/dock/state", O_RDONLY);2113 if (sw_fd >= 0) {2115 if (read(sw_fd, &value, 1) == 1)2117 close(sw_fd);