1DEVRES_ALLOC(9)                  Driver Basics                 DEVRES_ALLOC(9)
2
3
4

NAME

6       devres_alloc - Allocate device resource data
7

SYNOPSIS

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

ARGUMENTS

12       release
13           Release function devres will be associated with
14
15       size
16           Allocation size
17
18       gfp
19           Allocation flags
20

DESCRIPTION

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

RETURNS

27       Pointer to allocated devres on success, NULL on failure.
28
30Kernel Hackers Manual 2.6.         June 2019                   DEVRES_ALLOC(9)
Impressum