Home | History | Annotate | Download | only in hwc

Lines Matching refs:sw_fd

2112     int sw_fd = open("/sys/class/switch/hdmi/state", O_RDONLY);
2113 if (sw_fd >= 0) {
2115 if (read(sw_fd, &value, 1) == 1)
2117 close(sw_fd);
2119 sw_fd = open("/sys/class/switch/dock/state", O_RDONLY);
2120 if (sw_fd >= 0) {
2122 if (read(sw_fd, &value, 1) == 1)
2124 close(sw_fd);