USBKBM(4M) | STREAMS Modules | USBKBM(4M) |
usbkbm - keyboard STREAMS module for Sun USB Keyboard
open("/dev/kbd", O_RDWR)
The usbkbm STREAMS module processes byte streams generated by a keyboard attached to a USB port. USB keyboard is a member of Human Interface Device (HID) Class, and usbkbm only supports the keyboard protocol defined in the specification. Definitions for altering keyboard translation and reading events from the keyboard are in <sys/kbio.h> and <sys/kbd.h>.
The usbkbm STREAMS module adheres to the interfaces exported by kb(4M). Refer to the DESCRIPTION section of kb(4M) for a discussion of the keyboard translation modes and the IOCTL section for the supported ioctl(2) requests.
USB Keyboard usbkbm returns different values for the following ioctls than kb(4M):
KIOCTYPE
KB_SUN3 Sun Type 3 keyboard KB_SUN4 Sun Type 4 keyboard KB_ASCII ASCII terminal masquerading as keyboard KB_PC Type 101 PC keyboard KB_USB USB keyboard
The USB keyboard type is KB_USB; usbkbm will return KB_USB in response to the KIOCTYPE ioctl.
KIOCLAYOUT
KIOCCMD
KBD_CMD_CLICK/KBD_CMD_NOCLICK
KBD_CMD_SETLED
KBD_CMD_GETLAYOUT
KBD_CMD_BELL/KBD_CMD_NOBELL
KBD_CMD_RESET
/kernel/strmod/usbkbm
/kernel/strmod/sparcv9/usbkbm
See attributes(7) for a description of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
Architecture | PCI-based systems |
dumpkeys(1), kbd(1), loadkeys(1), ioctl(2), hid(4D), usba(4D), virtualkm(4D), kb(4M), keytables(5), attributes(7)
STREAMS Programming Guide
System Administration Guide: Basic Administration
None
May 13, 2017 | OmniOS |