---
name: "struct_key_entry"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_key_entry"
---

# struct\_key\_entry(9)

keymap entry for use in sparse keymap

## NAME

struct\_key\_entry - keymap entry for use in sparse keymap

## SYNOPSIS

```
struct key_entry {
  int type;
  u32 code;
  union {unnamed_union};
};
```

## MEMBERS

type

Type of the key entry (KE\_KEY, KE\_SW, KE\_VSW, KE\_END); drivers are allowed to extend the list with their own private definitions.

code

Device-specific data identifying the button/switch

{unnamed\_union}

anonymous

## DESCRIPTION

This structure defines an entry in a sparse keymap used by some input devices for which traditional table-based approach is not suitable.

## COPYRIGHT
