Lines Matching refs:flags
24 slab_flags_t flags; /* Active flags on the slab */ member
157 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
160 slab_flags_t flags, unsigned int useroffset,
163 unsigned int size, slab_flags_t flags,
168 slab_flags_t flags, const char *name, void (*ctor)(void *));
172 slab_flags_t flags, void (*ctor)(void *));
175 slab_flags_t flags, const char *name,
180 slab_flags_t flags, void (*ctor)(void *)) in __kmem_cache_alias() argument
184 slab_flags_t flags, const char *name, in kmem_cache_flags() argument
187 return flags; in kmem_cache_flags()
274 return (s->flags & SLAB_RECLAIM_ACCOUNT) ? in cache_vmstat_idx()
517 !unlikely(s->flags & SLAB_CONSISTENCY_CHECKS)) in cache_from_obj()
538 if (s->flags & (SLAB_RED_ZONE | SLAB_POISON)) in slab_ksize()
541 if (s->flags & SLAB_KASAN) in slab_ksize()
548 if (s->flags & (SLAB_TYPESAFE_BY_RCU | SLAB_STORE_USER)) in slab_ksize()
558 gfp_t flags) in slab_pre_alloc_hook() argument
560 flags &= gfp_allowed_mask; in slab_pre_alloc_hook()
562 fs_reclaim_acquire(flags); in slab_pre_alloc_hook()
563 fs_reclaim_release(flags); in slab_pre_alloc_hook()
565 might_sleep_if(gfpflags_allow_blocking(flags)); in slab_pre_alloc_hook()
567 if (should_failslab(s, flags)) in slab_pre_alloc_hook()
571 ((flags & __GFP_ACCOUNT) || (s->flags & SLAB_ACCOUNT))) in slab_pre_alloc_hook()
577 static inline void slab_post_alloc_hook(struct kmem_cache *s, gfp_t flags, in slab_post_alloc_hook() argument
582 flags &= gfp_allowed_mask; in slab_post_alloc_hook()
584 p[i] = kasan_slab_alloc(s, p[i], flags); in slab_post_alloc_hook()
587 s->flags, flags); in slab_post_alloc_hook()
674 static inline bool slab_want_init_on_alloc(gfp_t flags, struct kmem_cache *c) in slab_want_init_on_alloc() argument
679 if (c->flags & (SLAB_TYPESAFE_BY_RCU | SLAB_POISON)) in slab_want_init_on_alloc()
680 return flags & __GFP_ZERO; in slab_want_init_on_alloc()
683 return flags & __GFP_ZERO; in slab_want_init_on_alloc()
690 (c->flags & (SLAB_TYPESAFE_BY_RCU | SLAB_POISON))); in slab_want_init_on_free()