devm_get_free_pages(9) - phpMan
DEVM_GET_FREE_PAGES(9) Driver Basics DEVM_GET_FREE_PAGES(9)
NAME
devm_get_free_pages - Resource-managed __get_free_pages
SYNOPSIS
unsigned long devm_get_free_pages(struct device * dev, gfp_t gfp_mask,
unsigned int order);
ARGUMENTS
dev
Device to allocate memory for
gfp_mask
Allocation gfp flags
order
Allocation size is (1 << order) pages
DESCRIPTION
Managed get_free_pages. Memory allocated with this function is automatically freed on
driver detach.
RETURN
Address of allocated memory on success, 0 on failure.
COPYRIGHT
Kernel Hackers Manual 4.8. January 2017 DEVM_GET_FREE_PAGES(9)
|