| devres_alloc_node(9) - phpMan
DEVRES_ALLOC_NODE(9) Driver Basics DEVRES_ALLOC_NODE(9)
NAME
devres_alloc_node - Allocate device resource data
SYNOPSIS
void * devres_alloc_node(dr_release_t release, size_t size, gfp_t gfp, int nid);
ARGUMENTS
release
Release function devres will be associated with
size
Allocation size
gfp
Allocation flags
nid
NUMA node
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.
RETURN
Pointer to allocated devres on success, NULL on failure.
COPYRIGHT
Kernel Hackers Manual 4.8. January 2017 DEVRES_ALLOC_NODE(9)
|