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

/systemd/src/login/
H A Dlogind-button.c272 uint8_t switches[SW_MAX/8+1] = {}; local
278 if (ioctl(b->fd, EVIOCGSW(sizeof(switches)), switches) < 0)
281 b->lid_closed = (switches[SW_LID/8] >> (SW_LID % 8)) & 1;
282 b->docked = (switches[SW_DOCK/8] >> (SW_DOCK % 8)) & 1;

Completed in 1315 milliseconds