Searched refs:ctor (Results 1 – 9 of 9) sorted by relevance
/mm/ |
D | slab_common.c | 171 if (s->ctor) in slab_unmergeable() 187 slab_flags_t flags, const char *name, void (*ctor)(void *)) in find_mergeable() 194 if (ctor) in find_mergeable() 236 unsigned int usersize, void (*ctor)(void *), in create_cache() 253 s->ctor = ctor; in create_cache() 306 void (*ctor)(void *)) in kmem_cache_create_usercopy() 352 s = __kmem_cache_alias(name, size, align, flags, ctor); in kmem_cache_create_usercopy() 364 flags, useroffset, usersize, ctor, NULL); in kmem_cache_create_usercopy() 418 slab_flags_t flags, void (*ctor)(void *)) in kmem_cache_create() 421 ctor); in kmem_cache_create()
|
D | slab.h | 29 void (*ctor)(void *); /* Called on object slot creation */ member 128 slab_flags_t flags, const char *name, void (*ctor)(void *)); 132 slab_flags_t flags, void (*ctor)(void *)); 139 slab_flags_t flags, void (*ctor)(void *)) in __kmem_cache_alias() 673 if (c->ctor) in slab_want_init_on_alloc() 685 return !(c->ctor || in slab_want_init_on_free()
|
D | slab.c | 1800 slab_flags_t flags, void (*ctor)(void *)) in __kmem_cache_alias() 1804 cachep = find_mergeable(size, align, flags, name, ctor); in __kmem_cache_alias() 1832 if (cachep->ctor || flags & SLAB_TYPESAFE_BY_RCU) in set_objfreelist_slab_cache() 2348 if (cachep->ctor && !(cachep->flags & SLAB_POISON)) { in cache_init_objs_debug() 2351 cachep->ctor(objp + obj_offset(cachep)); in cache_init_objs_debug() 2504 if (DEBUG == 0 && cachep->ctor) { in cache_init_objs() 2506 cachep->ctor(objp); in cache_init_objs() 2581 WARN_ON_ONCE(cachep->ctor && (flags & __GFP_ZERO)); in cache_grow_begin() 2993 WARN_ON_ONCE(cachep->ctor && (flags & __GFP_ZERO)); in cache_alloc_debugcheck_after() 3017 if (cachep->ctor && cachep->flags & SLAB_POISON) in cache_alloc_debugcheck_after() [all …]
|
D | slob.c | 621 if (b && c->ctor) { in slob_alloc_node() 623 c->ctor(b); in slob_alloc_node()
|
D | slub.c | 1656 if (unlikely(s->ctor)) { in setup_object() 1658 s->ctor(object); in setup_object() 2629 WARN_ON_ONCE(s->ctor && (flags & __GFP_ZERO)); in new_slab_objects() 3739 !s->ctor) in calculate_sizes() 3762 s->ctor) { in calculate_sizes() 4484 slab_flags_t flags, void (*ctor)(void *)) in __kmem_cache_alias() 4488 s = find_mergeable(size, align, flags, name, ctor); in __kmem_cache_alias() 5105 if (!s->ctor) in ctor_show() 5107 return sprintf(buf, "%pS\n", s->ctor); in ctor_show() 5109 SLAB_ATTR_RO(ctor);
|
D | mempool.c | 512 VM_BUG_ON(mem->ctor); in mempool_alloc_slab()
|
/mm/kasan/ |
D | common.c | 189 if ((cache->flags & SLAB_TYPESAFE_BY_RCU) || cache->ctor || in __kasan_cache_create() 292 if (!cache->ctor && !(cache->flags & SLAB_TYPESAFE_BY_RCU)) in assign_tag()
|
/mm/kfence/ |
D | kfence_test.c | 170 void (*ctor)(void *)) in setup_test_cache() 175 kunit_info(test, "%s: size=%zu, ctor=%ps\n", __func__, size, ctor); in setup_test_cache() 183 test_cache = kmem_cache_create("test", size, 1, flags, ctor); in setup_test_cache()
|
D | core.c | 339 if (cache->ctor) in kfence_guarded_alloc() 340 cache->ctor(addr); in kfence_guarded_alloc()
|