summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2026-09-07 09:36:54 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-10-08 22:55:02 -0700
commit6fc433516140e77f6fd54665bf975b5bc8413c3e (patch)
treeac936e663c798cd84db966e8eb0aa7c92e49ce08 /include
parent9c16259ac970597ffbadce84e3a6a8f249562b41 (diff)
docs/core-api: memory-allocation: clarify when to use kzalloc_obj and kzalloc
Make it abundantly clear that in the most cases objects should be allocated with kzalloc_obj() and buffers should be allocated with kzalloc(). Link: https://lore.kernel.org/20260907063654.2248617-1-rppt@kernel.org Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Vlastimil Babka (SUSE) <vbabka@kernel.org> Acked-by: Lorenzo Stoakes (ARM) <ljs@kernel.org> Reviewed-by: David Hildenbrand (Arm) <david@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Liam R. Howlett <liam@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Randy Dunlap <rdunlap@infradead.org> Cc: SeongJae Park <sj@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions