---
name: "platform_device_add_resources"
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_add_resources"
---

# platform\_device\_add\_resources(9)

add resources to a platform device

## NAME

platform\_device\_add\_resources - add resources to a platform device

## SYNOPSIS

**int platform\_device\_add\_resources(struct platform\_device \*** *pdev***, const struct resource \*** *res***, unsigned int** *num***);**

## ARGUMENTS

*pdev*

platform device allocated by platform\_device\_alloc to add resources to

*res*

set of resources that needs to be allocated for the device

*num*

number of resources

## DESCRIPTION

Add a copy of the resources to the platform device. The memory associated with the resources will be freed when the platform device is released.

## COPYRIGHT
