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

NAME

6       devres_alloc_node - Allocate device resource data
7

SYNOPSIS

9       void * devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp,
10                                int nid);
11

ARGUMENTS

13       release
14           Release function devres will be associated with
15
16       size
17           Allocation size
18
19       gfp
20           Allocation flags
21
22       nid
23           NUMA node
24

DESCRIPTION

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

RETURNS

31       Pointer to allocated devres on success, NULL on failure.
32
34Kernel Hackers Manual 3.10         June 2019              DEVRES_ALLOC_NODE(9)
Impressum