'\" t .\" Title: platform_device_alloc .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "PLATFORM_DEVICE_ALLO" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * 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" platform_device_alloc \- create a platform device .SH "SYNOPSIS" .HP \w'struct\ platform_device\ *\ platform_device_alloc('u .BI "struct platform_device * platform_device_alloc(const\ char\ *\ " "name" ", int\ " "id" ");" .SH "ARGUMENTS" .PP \fIname\fR .RS 4 base name of the device we\*(Aqre adding .RE .PP \fIid\fR .RS 4 instance id .RE .SH "DESCRIPTION" .PP Create a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released\&. .SH "COPYRIGHT" .br