Searched refs:m_devfd (Results 1 – 2 of 2) sorted by relevance
/netbsd-src/usr.sbin/wsmoused/ |
H A D | wsmoused.c | 231 Mouse.m_devfd = -1; in init_mouse() 255 if (Mouse.m_devfd != -1) in open_device() 261 Mouse.m_devfd = open(Mouse.m_devname, O_RDONLY | O_NONBLOCK, 0); in open_device() 262 if (Mouse.m_devfd == -1) in open_device() 266 status = ioctl(Mouse.m_devfd, WSMOUSEIO_SETVERSION, &version); in open_device() 277 status = ioctl(Mouse.m_devfd, WSMOUSEIO_GTYPE, &mouse_type); in open_device() 287 status = ioctl(Mouse.m_devfd, WSMOUSEIO_GCALIBCOORDS, &Mouse.m_calib); in open_device() 315 fds[1].fd = Mouse.m_devfd; in event_loop() 346 res = read(Mouse.m_devfd, &event, sizeof(event)); in event_loop() 386 (void)close(Mouse.m_devfd); in generic_wscons_event() [all …]
|
H A D | wsmoused.h | 48 int m_devfd; /* File descriptor of wsmouse device */ member
|