Skip to main content

Module input_scheme

Module input_scheme 

Source
Expand description

Input scheme : exposes raw keyboard and mouse events to userspace.

Mounted at /dev/input. Provides two virtual files: /dev/input/kbd : raw keyboard scancodes (1 byte per event) /dev/input/mouse : raw mouse events (7 bytes per event)

The scheme reads from the kernel-internal ring buffers (keyboard.rs, mouse.rs) which are filled by PS/2 and USB HID IRQ handlers. Layout translation and modifier state are handled in userspace by the Input Server.

Structsยง

InputScheme

Constantsยง

KBD_FILE_ID ๐Ÿ”’
File IDs for the two virtual input devices.
MOUSE_FILE_ID ๐Ÿ”’

Staticsยง

NEXT_ID ๐Ÿ”’