Skip to content
Snippets Groups Projects
Commit 2b07f685 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Simon Glass
Browse files

devres: add devm_kmalloc() and friends (managed memory allocators)


devm_kmalloc() is identical to kmalloc() except that the memory
allocated with it is managed and will be automatically released
when the device is removed/unbound.

Likewise for the other variants.

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent 608f26c5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment