kbd(7) DG/UX 4.30 kbd(7)
NAME
kbd - AViiON 300 series workstation system keyboard
DESCRIPTION
This device driver supports the system keyboard for the Data
General AViiON 300 series workstations. The device is
accessed using the standard open, close, read, write, ioctl,
and select system calls. The system keyboard device may act
as the physical system console for the DG/UX system
depending on the system hardware configuration. When acting
as the physical system console, data from the keyboard is
diverted to the syscon(7) pseudo-device whenever the kbd
device has not been explicitly opened by a user process.
Opening the system keyboard device prevents it from
providing input to the system console pseudo-device.
The open system call provides a handle to access the system
keyboard.
The close system call frees the handle to the system
keyboard established by open.
The read system call transfers keyboard data from the system
keyboard to the user program. Data output by the keyboard
consists of raw scan codes, a unique code for each key. A
single byte scan code is generated for a key press and a two
byte sequence (a break code byte and a scan code byte) is
generated when the key is released. This device does NOT
provide the standard DG/UX terminal interfaces.
The write system call is not supported for the system
keyboard.
The ioctl system call may be used with the following
commands:
KBD_RESET
Resets the keyboard and keyboard leds.
KBD_GET_LANGUAGE
Returns the keyboard language in argument.
KBD_TONE_LOW
Sounds the keyboard bell tone.
KBD_TONE_HIGH
Sounds the keyboard bell tone.
F_SETOWN
Set ownership of kbd device to the group specified in
argument.
Licensed material--property of copyright holder(s) Page 1
kbd(7) DG/UX 4.30 kbd(7)
F_GETOWN
Returns group owning the kbd device in argument.
The select system call behaves the same as for tty(7)
devices.
FILES
/dev/kbd kbd device node
/usr/include/sys/_int_dg_kbd_ioctl.h
keyboard ioctl commands
SEE ALSO
ioctl(2), fcntl(2), syscon(7).
Licensed material--property of copyright holder(s) Page 2