---
name: "platform_device_alloc"
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_alloc"
---

# platform\_device\_alloc(9)

create a platform device

## NAME

platform\_device\_alloc - create a platform device

## SYNOPSIS

**struct platform\_device \* platform\_device\_alloc(const char \*** *name***, int** *id***);**

## ARGUMENTS

*name*

base name of the device we're adding

*id*

instance id

## DESCRIPTION

Create a platform device object which can have other objects attached to it, and which will have attached objects freed when it is released.

## COPYRIGHT
