1DEVRES_ALLOC(9) Driver Basics DEVRES_ALLOC(9)
2
3
4
6 devres_alloc - Allocate device resource data
7
9 void * devres_alloc(dr_release_t release, size_t size, gfp_t gfp);
10
12 release
13 Release function devres will be associated with
14
15 size
16 Allocation size
17
18 gfp
19 Allocation flags
20
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
27 Pointer to allocated devres on success, NULL on failure.
28
30Kernel Hackers Manual 2.6. November 2011 DEVRES_ALLOC(9)