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

NAME

6       devm_input_allocate_device - allocate managed input device
7

SYNOPSIS

9       struct input_dev * devm_input_allocate_device(struct device * dev);
10

ARGUMENTS

12       dev
13           device owning the input device being created
14

DESCRIPTION

16       Returns prepared struct input_dev or NULL.
17
18       Managed input devices do not need to be explicitly unregistered or
19       freed as it will be done automatically when owner device unbinds from
20       its driver (or binding fails). Once managed input device is allocated,
21       it is ready to be set up and registered in the same fashion as regular
22       input device. There are no special devm_input_device_[un]register
23       variants, regular ones work with both managed and unmanaged devices,
24       should you need them. In most cases however, managed input device need
25       not be explicitly unregistered or freed.
26

NOTE

28       the owner device is set up as parent of input device and users should
29       not override it.
30
32Kernel Hackers Manual 3.10         June 2019           DEVM_INPUT_ALLOCATE_(9)
Impressum