'\" t .\" Title: devm_input_allocate_polled_device .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Input Subsystem .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEVM_INPUT_ALLOCATE_" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Input Subsystem" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" devm_input_allocate_polled_device \- allocate managed polled device .SH "SYNOPSIS" .HP \w'struct\ input_polled_dev\ *\ devm_input_allocate_polled_device('u .BI "struct input_polled_dev * devm_input_allocate_polled_device(struct\ device\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device owning the polled device being created .RE .SH "DESCRIPTION" .PP Returns prepared struct input_polled_dev or \fBNULL\fR\&. .PP Managed polled input devices do not need to be explicitly unregistered or freed as it will be done automatically when owner device unbinds from * its driver (or binding fails)\&. Once such managed polled device is allocated, it is ready to be set up and registered in the same fashion as regular polled input devices (using \fBinput_register_polled_device\fR function)\&. .PP If you want to manually unregister and free such managed polled devices, it can be still done by calling \fBinput_unregister_polled_device\fR and \fBinput_free_polled_device\fR, although it is rarely needed\&. .SH "NOTE" .PP the owner device is set up as parent of input device and users should not override it\&. .SH "COPYRIGHT" .br