Home
last modified time | relevance | path

Searched refs:ctor (Results 1 – 8 of 8) sorted by relevance

/mm/
Dslab.h26 void (*ctor)(void *); /* Called on object slot creation */ member
97 unsigned long flags, const char *name, void (*ctor)(void *));
101 unsigned long flags, void (*ctor)(void *));
105 void (*ctor)(void *));
109 unsigned long flags, void (*ctor)(void *)) in __kmem_cache_alias()
114 void (*ctor)(void *)) in kmem_cache_flags()
Dslab_common.c241 if (s->ctor) in slab_unmergeable()
254 unsigned long flags, const char *name, void (*ctor)(void *)) in find_mergeable()
261 if (ctor) in find_mergeable()
329 unsigned long flags, void (*ctor)(void *), in create_cache()
344 s->ctor = ctor; in create_cache()
393 unsigned long flags, void (*ctor)(void *)) in kmem_cache_create()
418 s = __kmem_cache_alias(name, size, align, flags, ctor); in kmem_cache_create()
430 flags, ctor, NULL, NULL); in kmem_cache_create()
543 root_cache->ctor, memcg, root_cache); in memcg_create_kmem_cache()
Dkmemcheck.c86 } else if (!s->ctor) { in kmemcheck_slab_alloc()
98 if (!s->ctor && !(s->flags & SLAB_DESTROY_BY_RCU)) in kmemcheck_slab_free()
Dslab.c1459 if (cachep->ctor) in kmem_getpages()
1913 void (*ctor)(void *)) in kmem_cache_flags()
1920 unsigned long flags, void (*ctor)(void *)) in __kmem_cache_alias()
1924 cachep = find_mergeable(size, align, flags, name, ctor); in __kmem_cache_alias()
1944 if (cachep->ctor || flags & SLAB_DESTROY_BY_RCU) in set_objfreelist_slab_cache()
2448 if (cachep->ctor && !(cachep->flags & SLAB_POISON)) { in cache_init_objs_debug()
2451 cachep->ctor(objp + obj_offset(cachep)); in cache_init_objs_debug()
2604 if (DEBUG == 0 && cachep->ctor) { in cache_init_objs()
2606 cachep->ctor(objp); in cache_init_objs()
3112 if (cachep->ctor && cachep->flags & SLAB_POISON) in cache_alloc_debugcheck_after()
[all …]
Dslub.c1258 void (*ctor)(void *)) in kmem_cache_flags()
1291 void (*ctor)(void *)) in kmem_cache_flags()
1387 if (unlikely(s->ctor)) { in setup_object()
1389 s->ctor(object); in setup_object()
1573 if (s->ctor) in allocate_slab()
3434 !s->ctor) in calculate_sizes()
3456 s->ctor)) { in calculate_sizes()
3534 s->flags = kmem_cache_flags(s->size, flags, s->name, s->ctor); in kmem_cache_open()
4169 unsigned long flags, void (*ctor)(void *)) in __kmem_cache_alias()
4173 s = find_mergeable(size, align, flags, name, ctor); in __kmem_cache_alias()
[all …]
Dslob.c555 if (b && c->ctor) in slob_alloc_node()
556 c->ctor(b); in slob_alloc_node()
Dmempool.c448 VM_BUG_ON(mem->ctor); in mempool_alloc_slab()
/mm/kasan/
Dkasan.c408 if (cache->flags & SLAB_DESTROY_BY_RCU || cache->ctor || in kasan_cache_create()