Query: input_register_device
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
INPUT_REGISTER_DEVIC(9) Input Subsystem INPUT_REGISTER_DEVIC(9)NAMEinput_register_device - register device with input coreSYNOPSISint input_register_device(struct input_dev * dev);ARGUMENTSdev device to be registeredDESCRIPTIONThis function registers device with input core. The device must be allocated with input_allocate_device and all it's capabilities set up before registering. If function fails the device must be freed with input_free_device. Once device has been successfully registered it can be unregistered with input_unregister_device; input_free_device should not be called in this case. Note that this function is also used to register managed input devices (ones allocated with devm_input_allocate_device). Such managed input devices need not be explicitly unregistered or freed, their tear down is controlled by the devres infrastructure. It is also worth noting that tear down of managed input devices is internally a 2-step process: registered managed input device is first unregistered, but stays in memory and can still handle input_event calls (although events will not be delivered anywhere). The freeing of managed input device will happen later, when devres stack is unwound to the point where device allocation was made.COPYRIGHTKernel Hackers Manual 3.10 June 2014 INPUT_REGISTER_DEVIC(9)
Related Man Pages |
---|
dm_dso_reg_tool(8) - centos |
device_create(9) - centos |
struct_ff_device(9) - centos |
struct_input_handler(9) - centos |
struct_input_polled_dev(9) - centos |
Similar Topics in the Unix Linux Community |
---|
Weird 'find' results |
DB2 convert digits to binary format |
Tar Command |
Controlling user input |
[TIP] Processing YAML files with yq |