The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
kbd.h File Reference

the ioctls of /dev/kbd: list, read and set the keyboard layout. More...

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  kbd_layout_name
 KBD_IOC_LAYOUT_NAME: set index; the kernel fills in name. More...
struct  kbd_keymap
 KBD_IOC_GET_KEYMAP: the characters of the active layout, by key code (the Linux key code of /dev/input, below 128). More...

Macros

#define KBD_LAYOUT_NAME_MAX   32
#define KBD_IOC_LAYOUT_COUNT   0x4B80
#define KBD_IOC_LAYOUT_NAME   0x4B81
#define KBD_IOC_GET_LAYOUT   0x4B82
#define KBD_IOC_SET_LAYOUT   0x4B83
#define KBD_IOC_GET_KEYMAP   0x4B84
#define KBD_KEYMAP_KEYS   128

Detailed Description

the ioctls of /dev/kbd: list, read and set the keyboard layout.

the values and the struct are ABI and must match src/drivers/keyboard/keyboard_ioctl.h.

Macro Definition Documentation

◆ KBD_LAYOUT_NAME_MAX

#define KBD_LAYOUT_NAME_MAX   32

◆ KBD_IOC_LAYOUT_COUNT

#define KBD_IOC_LAYOUT_COUNT   0x4B80

◆ KBD_IOC_LAYOUT_NAME

#define KBD_IOC_LAYOUT_NAME   0x4B81

◆ KBD_IOC_GET_LAYOUT

#define KBD_IOC_GET_LAYOUT   0x4B82

◆ KBD_IOC_SET_LAYOUT

#define KBD_IOC_SET_LAYOUT   0x4B83

◆ KBD_IOC_GET_KEYMAP

#define KBD_IOC_GET_KEYMAP   0x4B84

◆ KBD_KEYMAP_KEYS

#define KBD_KEYMAP_KEYS   128