Files
linux/include
Kees Cook 29a86e8818 devres: Provide kmalloc_obj*-style API for devm_kmalloc
Mirroring the type-based allocation now in use for the kmalloc family of
APIs, provide the same for the devm_kmalloc family of APIs. This will
allow for future plumbing of type information (e.g. alignment) into the
underlying allocations. This immediately gains type check on return
values (instead of the prior "void *" return type).

Reviewed-by: Greg Kroah-Hartman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Kees Cook <[email protected]>
2026-10-05 17:50:53 -07:00
..
…
…
…
…
…
…
…
…