'\" t .\" Title: input_free_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 "INPUT_FREE_DEVICE" "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" input_free_device \- free memory occupied by input_dev structure .SH "SYNOPSIS" .HP \w'void\ input_free_device('u .BI "void input_free_device(struct\ input_dev\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 input device to free .RE .SH "DESCRIPTION" .PP This function should only be used if \fBinput_register_device\fR was not called yet or if it failed\&. Once device was registered use \fBinput_unregister_device\fR and memory will be freed once last reference to the device is dropped\&. .PP Device should be allocated by \fBinput_allocate_device\fR\&. .SH "NOTE" .PP If there are references to the input device then memory will not be freed until last reference is dropped\&. .SH "COPYRIGHT" .br