1INPUT_REGISTER_DEVIC(9)         Input Subsystem        INPUT_REGISTER_DEVIC(9)
2
3
4

NAME

6       input_register_device - register device with input core
7

SYNOPSIS

9       int input_register_device(struct input_dev * dev);
10

ARGUMENTS

12       dev
13           device to be registered
14

DESCRIPTION

16       This function registers device with input core. The device must be
17       allocated with input_allocate_device and all it's capabilities set up
18       before registering. If function fails the device must be freed with
19       input_free_device. Once device has been successfully registered it can
20       be unregistered with input_unregister_device; input_free_device should
21       not be called in this case.
22
23       Note that this function is also used to register managed input devices
24       (ones allocated with devm_input_allocate_device). Such managed input
25       devices need not be explicitly unregistered or freed, their tear down
26       is controlled by the devres infrastructure. It is also worth noting
27       that tear down of managed input devices is internally a 2-step process:
28       registered managed input device is first unregistered, but stays in
29       memory and can still handle input_event calls (although events will not
30       be delivered anywhere). The freeing of managed input device will happen
31       later, when devres stack is unwound to the point where device
32       allocation was made.
33
35Kernel Hackers Manual 3.10         June 2019           INPUT_REGISTER_DEVIC(9)
Impressum