linux/tools/include/linux
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
..
sched
unaligned
align.h
args.h selftests/bpf: Add simple strscpy() implementation 2026-02-23 18:40:07 -08:00
arm-smccc.h
atomic.h tools/include: implement a couple of atomic_t ops 2025-09-13 16:55:24 -07:00
bitfield.h tools: Fix bitfield dependency failure 2026-01-28 15:18:44 -03:00
bitmap.h tools: bitmap: add missing bitmap_copy() implementation 2026-04-05 13:53:41 -07:00
bitops.h
bits.h
btf_ids.h
bug.h
build_bug.h tools headers: Synchronize linux/build_bug.h with the kernel sources 2026-03-22 18:34:39 -03:00
cache.h
cfi_types.h tools headers: kcfi: rename missed CONFIG_CFI_CLANG 2025-10-07 08:21:33 -07:00
compiler_types.h Updates for the VDSO subsystem: 2026-02-10 17:02:23 -08:00
compiler-context-analysis.h tools: Update context analysis macros in compiler_types.h 2026-01-28 09:25:45 +01:00
compiler-gcc.h
compiler.h
const.h
container_of.h
coresight-pmu.h perf cs-etm: Sync coresight-pmu.h header with the kernel sources 2026-03-10 09:52:00 -03:00
ctype.h
debugfs.h
delay.h
err.h
export.h
filter.h
find.h
ftrace.h
gfp_types.h tools headers: Update the linux/gfp_types.h copy with the kernel sources 2026-03-04 11:55:14 -03:00
gfp.h tools/testing: fix testing/vma and testing/radix-tree build 2026-03-04 09:44:22 -08:00
hash.h
hashtable.h
init.h
interrupt.h
interval_tree_generic.h interval_tree: Fix ITSTATIC usage for *_subtree_search() 2025-10-14 14:45:22 -07:00
io.h
jhash.h
kallsyms.h
kasan-tags.h
kconfig.h
kern_levels.h
kernel.h
linkage.h
list_sort.h
list.h tools/lib: Add list_is_first() 2026-01-21 21:54:59 -03:00
livepatch_external.h objtool/klp: Introduce klp diff subcommand for diffing object files 2025-10-14 14:50:18 -07:00
log2.h
math.h
math64.h
mm.h mm: move free_reserved_area() to mm/memblock.c 2026-04-01 11:19:46 +03:00
module.h
moduleparam.h
mutex.h
nmi.h
numa.h
objtool_types.h objtool: Add ANNOTATE_DATA_SPECIAL 2025-10-14 14:50:16 -07:00
overflow.h tools/testing: fix testing/vma and testing/radix-tree build 2026-03-04 09:44:22 -08:00
panic.h
pci_ids.h
pfn.h
poison.h
prandom.h
rbtree_augmented.h
rbtree.h
rcu.h
refcount.h
ring_buffer.h
rwsem.h
seq_file.h
sizes.h
slab.h mm/slab: improve kmem_cache_alloc_bulk 2026-06-03 18:20:43 +02:00
spinlock.h
static_call_types.h static_call: allow using STATIC_CALL_TRAMP_STR() from assembly 2025-11-15 06:18:17 +00:00
string.h objtool/klp: Introduce klp diff subcommand for diffing object files 2025-10-14 14:50:18 -07:00
stringify.h
time64.h
types.h tools include: Add definitions for __aligned_{l,b}e64 2025-12-23 14:16:18 -07:00
unaligned.h tools headers: Remove unneeded ignoring of warnings in unaligned.h 2026-01-14 08:56:41 +01:00
zalloc.h