'\" t .\" Title: platform_device_register_resndata .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "PLATFORM_DEVICE_REGI" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "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_register_resndata \- add a platform\-level device with resources and platform\-specific data .SH "SYNOPSIS" .HP \w'struct\ platform_device\ *\ platform_device_register_resndata('u .BI "struct platform_device * platform_device_register_resndata(struct\ device\ *\ " "parent" ", const\ char\ *\ " "name" ", int\ " "id" ", const\ struct\ resource\ *\ " "res" ", unsigned\ int\ " "num" ", const\ void\ *\ " "data" ", size_t\ " "size" ");" .SH "ARGUMENTS" .PP \fIparent\fR .RS 4 parent device for the device we\*(Aqre adding .RE .PP \fIname\fR .RS 4 base name of the device we\*(Aqre adding .RE .PP \fIid\fR .RS 4 instance id .RE .PP \fIres\fR .RS 4 set of resources that needs to be allocated for the device .RE .PP \fInum\fR .RS 4 number of resources .RE .PP \fIdata\fR .RS 4 platform specific data for this platform device .RE .PP \fIsize\fR .RS 4 size of platform specific data .RE .SH "DESCRIPTION" .PP Returns struct platform_device pointer on success, or \fBERR_PTR\fR on error\&. .SH "COPYRIGHT" .br