cvs commit: src/sys/dev/usb ukbd.c

Alexander Kabaev kan at
Mon Oct 15 13:37:36 PDT 2007

kan         2007-10-15 20:37:35 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/usb          ukbd.c 
  Make ukbd_getc respect non-blocking behavior if one is requested. Change
  ukbd_poll to mark this keyboard instance as polling before calling
  usbd_set_polling at USB level. usbd_set_polling runs softintr before
  returning, stealing our input and making consequent polling getchar
  kind of pointless.
  This allows USB keyboards to coexist peacefully with serial console in DDB
  and other contexts where polling is used.
  MFC after:      1 week
  Revision  Changes    Path
  1.74      +10 -7     src/sys/dev/usb/ukbd.c

More information about the cvs-src mailing list