---
name: "struct_input_keymap_entry"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_input_keymap_entry"
---

# struct\_input\_keymap\_entry(9)

used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls

## NAME

struct\_input\_keymap\_entry - used by EVIOCGKEYCODE/EVIOCSKEYCODE ioctls

## SYNOPSIS

```
struct input_keymap_entry {
#define INPUT_KEYMAP_BY_INDEX	(1 << 0)
  __u8 flags;
  __u8 len;
  __u16 index;
  __u32 keycode;
  __u8 scancode[32];
};
```

## MEMBERS

flags

allows to specify how kernel should handle the request. For example, setting INPUT\_KEYMAP\_BY\_INDEX flag indicates that kernel should perform lookup in keymap by *index* instead of *scancode*

len

length of the scancode that resides in *scancode* buffer.

index

index in the keymap, may be used instead of scancode

keycode

key code assigned to this scancode

scancode\[32\]

scancode represented in machine-endian form.

## DESCRIPTION

The structure is used to retrieve and modify keymap data. Users have option of performing lookup either by *scancode* itself or by *index* in keymap entry. EVIOCGKEYCODE will also return scancode or index (depending on which element was used to perform lookup).

## COPYRIGHT
