Lines Matching defs:slab

7 #include <linux/slab.h>
32 #include "slab.h"
48 * Set of flags that will prevent slab merging
58 * Merge control. If this is set then no merging of slab caches will occur.
83 * Determine the size of a slab object
138 * Find a mergeable slab cache
154 * We may have set a slab to be unmergeable during bootstrap.
265 * %SLAB_POISON - Poison the slab with a known test pattern (a5a5a5a5)
353 panic("%s: Failed to create slab '%s'. Error %d\n",
379 * %SLAB_POISON - Poison the slab with a known test pattern (a5a5a5a5)
429 * @slab_caches_to_rcu_destroy list. The slab pages are freed
532 * kmem_valid_obj - does the pointer reference a valid slab object?
551 static void kmem_obj_info(struct kmem_obj_info *kpp, void *object, struct slab *slab)
553 if (__kfence_obj_info(kpp, object, slab))
555 __kmem_obj_info(kpp, object, slab);
559 * kmem_dump_obj - Print available slab provenance information
560 * @object: slab object for which to find provenance information.
565 * For a slab-cache object, the fact that it is a slab object is printed,
566 * and, if available, the slab name, return address, and stack trace from
569 * This function will splat if passed a pointer to a non-slab object.
577 struct slab *slab;
583 slab = virt_to_slab(object);
584 if (WARN_ON_ONCE(!slab)) {
585 pr_cont(" non-slab memory.\n");
588 kmem_obj_info(&kp, object, slab);
590 pr_cont(" slab%s %s", cp, kp.kp_slab_cache->name);
592 pr_cont(" slab%s", cp);
628 /* Create a cache during boot when no slab services are available yet */
655 panic("Creation of kmalloc slab %s size=%u failed. Reason %d\n",
668 panic("Out of memory when creating slab %s\n", name);
954 * enable allocations for slab creation.
1059 struct slab *slab;
1073 slab = folio_slab(folio);
1074 s = slab->slab_cache;
1330 pr_warn("excessive unreclaimable slab but cannot dump stats\n");
1334 pr_info("Unreclaimable slab info:\n");
1361 * num-pages-per-slab