struct_key_entry(9)

struct_key_entry9

Keymap entry for use in sparse keymap

Usage

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

Overview

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

Releases

2 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7
  2. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.