Lines Matching defs:slab

7 #include <linux/slab.h>
35 #include "slab.h"
46 * Set of flags that will prevent slab merging
56 * Merge control. If this is set then no merging of slab caches will occur.
79 * Determine the size of a slab object
151 * Find a mergeable slab cache
170 * We may have set a slab to be unmergeable during bootstrap.
351 panic("%s: Failed to create slab '%s'. Error %d\n",
501 * SLAB_TYPESAFE_BY_RCU slab are freed, SLUB will internally
506 * It doesn't matter that we haven't looked at the slab refcount
576 static void kmem_obj_info(struct kmem_obj_info *kpp, void *object, struct slab *slab)
578 if (__kfence_obj_info(kpp, object, slab))
580 __kmem_obj_info(kpp, object, slab);
584 * kmem_dump_obj - Print available slab provenance information
585 * @object: slab object for which to find provenance information.
590 * For a slab-cache object, the fact that it is a slab object is printed,
591 * and, if available, the slab name, return address, and stack trace from
602 struct slab *slab;
609 slab = virt_to_slab(object);
610 if (!slab)
613 kmem_obj_info(&kp, object, slab);
615 pr_cont(" slab%s %s", cp, kp.kp_slab_cache->name);
617 pr_cont(" slab%s", cp);
654 /* Create a cache during boot when no slab services are available yet */
680 panic("Creation of kmalloc slab %s size=%u failed. Reason %d\n",
693 panic("Out of memory when creating slab %s\n", name);
952 * enable allocations for slab creation.
1149 pr_warn("excessive unreclaimable slab but cannot dump stats\n");
1153 pr_info("Unreclaimable slab info:\n");
1180 * num-pages-per-slab
1268 struct slab *slab;
1273 slab = virt_to_slab((void *)(long)addr);
1274 return slab ? slab->slab_cache : NULL;
1400 * the interactions with the slab allocators.
1519 "slab", bnode->nr_records,
1526 "slab", bnode->records[i], 0);
1557 trace_rcu_invoke_kvfree_callback("slab", head, offset);
1618 struct slab *slab;
1627 slab = folio_slab(folio);
1628 s = slab->slab_cache;
1631 slab_nid(slab) == numa_mem_id()))
2016 * and likely removes any references to it. Since the actual slab
2206 kfree_rcu_shrinker = shrinker_alloc(0, "slab-kvfree-rcu");