other versions
- jessie 3.16.56-1+deb8u1
DEVRES_ALLOC(9) | Driver Basics | DEVRES_ALLOC(9) |
NAME¶
devres_alloc - Allocate device resource dataSYNOPSIS¶
void *
devres_alloc(dr_release_t release,
size_t size, gfp_t gfp);
ARGUMENTS¶
releaseRelease function devres will be associated with
size
Allocation size
gfp
Allocation flags
DESCRIPTION¶
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.COPYRIGHT¶
May 2018 | Kernel Hackers Manual 3.16 |