platform_device_add_resources(9)

platform_device_add_resources9

Add resources to a platform device

Usage

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

Overview

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.

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.