other versions
- wheezy 3.2.78-1
DEVM_KZALLOC(9) | Driver Basics | DEVM_KZALLOC(9) |
NAME¶
devm_kzalloc - Resource-managed kzallocSYNOPSIS¶
void *
devm_kzalloc(struct device * dev,
size_t size, gfp_t gfp);
ARGUMENTS¶
devDevice to allocate memory for
size
Allocation size
gfp
Allocation gfp flags
DESCRIPTION¶
Managed kzalloc. Memory allocated with this function is automatically freed on driver detach. Like all other devres resources, guaranteed alignment is unsigned long long.RETURNS¶
Pointer to allocated memory on success, NULL on failure.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |