---
name: "platform_device_register_resndata"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/platform_device_register_resndata"
---

# platform\_device\_register\_resndata(9)

add a platform-level device with resources and platform-specific data

## NAME

platform\_device\_register\_resndata - add a platform-level device with resources and platform-specific data

## SYNOPSIS

**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***);**

## ARGUMENTS

*parent*

parent device for the device we're adding

*name*

base name of the device we're adding

*id*

instance id

*res*

set of resources that needs to be allocated for the device

*num*

number of resources

*data*

platform specific data for this platform device

*size*

size of platform specific data

## DESCRIPTION

Returns struct platform\_device pointer on success, or **ERR\_PTR** on error.

## COPYRIGHT
