linux/tools/testing/shared
Christoph Hellwig 6bb0009862 mm/slab: improve kmem_cache_alloc_bulk
The kmem_cache_alloc_bulk return value is weird.  It returns the number
of allocated objects, but that must always be 0 or the requested number
based on the implementations and the handling in the callers, but that
assumption is not actually documented anywhere, which confuses automated
review tools.

Fix this by returning a bool if the allocation succeeded and adding a
kerneldoc comment explaining the API.

[rob.clark@oss.qualcomm.com: fixups in
 msm_iommu_pagetable_prealloc_allocate() ]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com> # skbuff
Link: https://patch.msgid.link/20260528093437.2519248-2-hch@lst.de
Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
2026-06-03 18:20:43 +02:00
..
linux tools: Update context analysis macros in compiler_types.h 2026-01-28 09:25:45 +01:00
trace/events
autoconf.h
interval_tree-shim.c lib/rbtree: enable userland test suite for rbtree related data structure 2025-03-17 12:17:00 -07:00
linux.c mm/slab: improve kmem_cache_alloc_bulk 2026-06-03 18:20:43 +02:00
maple-shared.h testing/radix-tree/maple: Hack around kfree_rcu not existing 2025-09-29 09:23:52 +02:00
maple-shim.c testing/radix-tree/maple: Hack around kfree_rcu not existing 2025-09-29 09:23:52 +02:00
rbtree-shim.c lib/rbtree: enable userland test suite for rbtree related data structure 2025-03-17 12:17:00 -07:00
shared.h
shared.mk tools: testing: support EXTRA_CFLAGS in shared.mk 2025-09-13 16:55:25 -07:00
xarray-shared.c
xarray-shared.h