devres_alloc(9)

devres_alloc9

Allocate device resource data

Usage

void * devres_alloc(dr_release_t release, size_t size, gfp_t gfp);

Arguments

release

Release function devres will be associated with

size

Allocation size

gfp

Allocation flags

Overview

Allocate devres of size bytes. The allocated area is zeroed, then associated with release. The returned pointer can be passed to other devres_*() functions.

Returns

Pointer to allocated devres on success, NULL on failure.

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.