Resource-managed __get_free_pages
unsigned long devm_get_free_pages(struct device * dev, gfp_t gfp_mask, unsigned int order);
dev
Device to allocate memory for
gfp_mask
Allocation gfp flags
order
Allocation size is (1 << order) pages
Managed get_free_pages. Memory allocated with this function is automatically freed on driver detach.
Address of allocated memory on success, 0 on failure.