Home
last modified time | relevance | path

Searched refs:kmem_cache (Results 1 – 25 of 490) sorted by relevance

12345678910>>...20

/linux/mm/
H A Dslab.h55 struct kmem_cache *slab_cache;
234 struct kmem_cache { struct
295 void sysfs_slab_unlink(struct kmem_cache *s); argument
296 void sysfs_slab_release(struct kmem_cache *s);
298 static inline void sysfs_slab_unlink(struct kmem_cache *s) { } in sysfs_slab_unlink()
299 static inline void sysfs_slab_release(struct kmem_cache *s) { } in sysfs_slab_release()
302 void *fixup_red_left(struct kmem_cache *s, void *p);
304 static inline void *nearest_obj(struct kmem_cache *cache, in nearest_obj()
317 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index()
324 static inline unsigned int obj_to_index(const struct kmem_cache *cach
236 cpu_slabkmem_cache global() argument
251 ookmem_cache global() argument
254 minkmem_cache global() argument
255 allocflagskmem_cache global() argument
256 refcountkmem_cache global() argument
257 ctorkmem_cache global() argument
258 inusekmem_cache global() argument
259 alignkmem_cache global() argument
260 red_left_padkmem_cache global() argument
261 namekmem_cache global() argument
262 listkmem_cache global() argument
264 kobjkmem_cache global() argument
290 nodekmem_cache global() argument
[all...]
H A Dslub.c57 * 3. kmem_cache->cpu_slab->lock (Local lock)
250 static inline bool kmem_cache_debug(struct kmem_cache *s) in kmem_cache_debug()
255 void *fixup_red_left(struct kmem_cache *s, void *p) in fixup_red_left()
263 static inline bool kmem_cache_has_cpu_partial(struct kmem_cache *s) in kmem_cache_has_cpu_partial()
351 static int sysfs_slab_add(struct kmem_cache *);
352 static int sysfs_slab_alias(struct kmem_cache *, const char *);
354 static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; } in sysfs_slab_add()
355 static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p) in sysfs_slab_alias()
360 static void debugfs_slab_add(struct kmem_cache *);
362 static inline void debugfs_slab_add(struct kmem_cache *
[all...]
/linux/tools/testing/shared/
H A Dlinux.c19 struct kmem_cache { struct
34 void kmem_cache_set_callback(struct kmem_cache *cachep, void (*callback)(void *)) in kmem_cache_set_callback() argument
39 void kmem_cache_set_private(struct kmem_cache *cachep, void *private) in kmem_cache_set_private()
44 void kmem_cache_set_non_kernel(struct kmem_cache *cachep, unsigned int val) in kmem_cache_set_non_kernel()
49 unsigned long kmem_cache_get_alloc(struct kmem_cache *cachep) in kmem_cache_get_alloc()
54 unsigned long kmem_cache_nr_allocated(struct kmem_cache *cachep) in kmem_cache_nr_allocated()
59 unsigned long kmem_cache_nr_tallocated(struct kmem_cache *cachep) in kmem_cache_nr_tallocated()
64 void kmem_cache_zero_nr_tallocated(struct kmem_cache *cachep) in kmem_cache_zero_nr_tallocated()
69 void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *lru, in kmem_cache_alloc_lru()
120 void __kmem_cache_free_locked(struct kmem_cache *cache
[all...]
/linux/kernel/bpf/
H A Dkmem_cache_iter.c9 #include "../../mm/slab.h" /* kmem_cache, slab_caches and slab_mutex */
17 struct kmem_cache *pos;
35 __bpf_kfunc struct kmem_cache *bpf_iter_kmem_cache_next(struct bpf_iter_kmem_cache *it) in bpf_iter_kmem_cache_next()
38 struct kmem_cache *prev = kit->pos; in bpf_iter_kmem_cache_next()
39 struct kmem_cache *next; in bpf_iter_kmem_cache_next()
53 next = list_first_entry(&slab_caches, struct kmem_cache, list); in bpf_iter_kmem_cache_next()
54 else if (list_last_entry(&slab_caches, struct kmem_cache, list) == prev) in bpf_iter_kmem_cache_next()
83 struct kmem_cache *s = kit->pos; in bpf_iter_kmem_cache_destroy()
107 __bpf_md_ptr(struct kmem_cache *, s);
119 struct kmem_cache * in kmem_cache_iter_seq_start()
[all...]
/linux/tools/include/linux/
H A Dslab.h33 void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *, int flags);
34 static inline void *kmem_cache_alloc(struct kmem_cache *cachep, int flags) in kmem_cache_alloc()
38 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
40 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
44 void kmem_cache_free_bulk(struct kmem_cache *cachep, size_t size, void **list);
45 int kmem_cache_alloc_bulk(struct kmem_cache *cachep, gfp_t gfp, size_t size,
/linux/lib/tests/
H A Dslub_kunit.c21 static struct kmem_cache *test_kmem_cache_create(const char *name, in test_kmem_cache_create()
24 struct kmem_cache *s = kmem_cache_create(name, size, 0, in test_kmem_cache_create()
32 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_alloc", 64, in test_clobber_zone()
50 struct kmem_cache *s = test_kmem_cache_create("TestSlub_next_ptr_free", in test_next_pointer()
95 struct kmem_cache *s = test_kmem_cache_create("TestSlub_1th_word_free", in test_first_word()
110 struct kmem_cache *s = test_kmem_cache_create("TestSlub_50th_word_free", in test_clobber_50th_byte()
126 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_free", 64, in test_clobber_redzone_free()
143 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_kmalloc", 32, in test_kmalloc_redzone_access()
168 struct kmem_cache *s; in test_kfree_rcu()
187 struct kmem_cache *
[all...]
/linux/mm/kasan/
H A Dkasan.h218 struct kmem_cache *cache;
359 size_t kasan_get_alloc_size(void *object, struct kmem_cache *cache);
376 void kasan_print_aux_stacks(struct kmem_cache *cache, const void *object);
378 static inline void kasan_print_aux_stacks(struct kmem_cache *cache, const void *object) { } in kasan_print_aux_stacks()
388 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache,
390 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache,
392 void kasan_init_object_meta(struct kmem_cache *cache, const void *object);
394 static inline void kasan_init_object_meta(struct kmem_cache *cache, const void *object) { } in kasan_init_object_meta()
400 void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags);
401 void kasan_save_free_info(struct kmem_cache *cach
[all...]
H A Dcommon.c156 void __kasan_unpoison_new_object(struct kmem_cache *cache, void *object) in __kasan_unpoison_new_object()
161 void __kasan_poison_new_object(struct kmem_cache *cache, void *object) in __kasan_poison_new_object()
177 static inline u8 assign_tag(struct kmem_cache *cache, in assign_tag()
198 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache, in __kasan_init_slab_obj()
212 static bool check_slab_allocation(struct kmem_cache *cache, void *object, in check_slab_allocation()
232 static inline void poison_slab_object(struct kmem_cache *cache, void *object, in poison_slab_object()
246 bool __kasan_slab_pre_free(struct kmem_cache *cache, void *object, in __kasan_slab_pre_free()
254 bool __kasan_slab_free(struct kmem_cache *cache, void *object, bool init, in __kasan_slab_free()
319 static inline void unpoison_slab_object(struct kmem_cache *cache, void *object, in unpoison_slab_object()
333 void * __must_check __kasan_slab_alloc(struct kmem_cache *cach
[all...]
H A Dgeneric.c204 void kasan_cache_shrink(struct kmem_cache *cache) in kasan_cache_shrink()
209 void kasan_cache_shutdown(struct kmem_cache *cache) in kasan_cache_shutdown()
353 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in kasan_cache_create()
456 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, in kasan_get_alloc_meta()
464 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, in kasan_get_free_meta()
473 void kasan_init_object_meta(struct kmem_cache *cache, const void *object) in kasan_init_object_meta()
509 size_t kasan_metadata_size(struct kmem_cache *cache, bool in_object) in kasan_metadata_size()
534 struct kmem_cache *cache; in kasan_record_aux_stack()
551 void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags) in kasan_save_alloc_info()
565 void kasan_save_free_info(struct kmem_cache *cach
[all...]
/linux/fs/jffs2/
H A Dmalloc.c22 static struct kmem_cache *full_dnode_slab;
23 static struct kmem_cache *raw_dirent_slab;
24 static struct kmem_cache *raw_inode_slab;
25 static struct kmem_cache *tmp_dnode_info_slab;
26 static struct kmem_cache *raw_node_ref_slab;
27 static struct kmem_cache *node_frag_slab;
28 static struct kmem_cache *inode_cache_slab;
30 static struct kmem_cache *xattr_datum_cache;
31 static struct kmem_cache *xattr_ref_cache;
/linux/tools/testing/selftests/bpf/progs/
H A Dkmem_cache_iter.c31 extern struct kmem_cache *bpf_get_kmem_cache(u64 addr) __ksym;
38 SEC("iter/kmem_cache")
42 struct kmem_cache *s = ctx->s; in slab_info_collector()
74 struct kmem_cache *s; in BPF_PROG()
93 struct kmem_cache *s; in open_coded_iter()
95 bpf_for_each(kmem_cache, s) { in open_coded_iter()
/linux/include/linux/
H A Dkfence.h94 void kfence_shutdown_cache(struct kmem_cache *s);
100 void *__kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags);
104 * @s: struct kmem_cache with object requirements
118 static __always_inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) in kfence_alloc()
142 * corresponding struct kmem_cache.
231 static inline void kfence_shutdown_cache(struct kmem_cache *s) { } in kfence_shutdown_cache()
232 static inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) { return NULL; } in kfence_alloc()
H A Dslab.h265 * struct kmem_cache related prototypes
340 struct kmem_cache *__kmem_cache_create_args(const char *name,
344 static inline struct kmem_cache *
374 static inline struct kmem_cache *
391 static inline struct kmem_cache *
436 void kmem_cache_destroy(struct kmem_cache *s);
437 int kmem_cache_shrink(struct kmem_cache *s);
624 typedef struct kmem_cache * kmem_buckets[KMALLOC_SHIFT_HIGH + 1];
737 void *kmem_cache_alloc_noprof(struct kmem_cache *cachep,
741 void *kmem_cache_alloc_lru_noprof(struct kmem_cache *
[all...]
H A Dkmsan.h18 struct kmem_cache;
100 void kmsan_slab_alloc(struct kmem_cache *s, void *object, gfp_t flags);
109 void kmsan_slab_free(struct kmem_cache *s, void *object);
331 static inline void kmsan_slab_alloc(struct kmem_cache *s, void *object, in kmsan_slab_alloc()
336 static inline void kmsan_slab_free(struct kmem_cache *s, void *object) in kmsan_slab_free()
/linux/fs/dlm/
H A Dmemory.c19 static struct kmem_cache *writequeue_cache;
20 static struct kmem_cache *mhandle_cache;
21 static struct kmem_cache *msg_cache;
22 static struct kmem_cache *lkb_cache;
23 static struct kmem_cache *rsb_cache;
24 static struct kmem_cache *cb_cache;
/linux/drivers/target/iscsi/
H A Discsi_target.h49 extern struct kmem_cache *lio_dr_cache;
50 extern struct kmem_cache *lio_ooo_cache;
51 extern struct kmem_cache *lio_qr_cache;
52 extern struct kmem_cache *lio_r2t_cache;
/linux/drivers/target/
H A Dtarget_core_alua.h79 extern struct kmem_cache *t10_alua_lu_gp_cache;
80 extern struct kmem_cache *t10_alua_lu_gp_mem_cache;
81 extern struct kmem_cache *t10_alua_tg_pt_gp_cache;
82 extern struct kmem_cache *t10_alua_lba_map_cache;
83 extern struct kmem_cache *t10_alua_lba_map_mem_cache;
/linux/fs/gfs2/
H A Dutil.h170 extern struct kmem_cache *gfs2_glock_cachep;
171 extern struct kmem_cache *gfs2_glock_aspace_cachep;
172 extern struct kmem_cache *gfs2_inode_cachep;
173 extern struct kmem_cache *gfs2_bufdata_cachep;
174 extern struct kmem_cache *gfs2_rgrpd_cachep;
175 extern struct kmem_cache *gfs2_quotad_cachep;
176 extern struct kmem_cache *gfs2_qadata_cachep;
177 extern struct kmem_cache *gfs2_trans_cachep;
H A Dutil.c29 struct kmem_cache *gfs2_glock_cachep __read_mostly;
30 struct kmem_cache *gfs2_glock_aspace_cachep __read_mostly;
31 struct kmem_cache *gfs2_inode_cachep __read_mostly;
32 struct kmem_cache *gfs2_bufdata_cachep __read_mostly;
33 struct kmem_cache *gfs2_rgrpd_cachep __read_mostly;
34 struct kmem_cache *gfs2_quotad_cachep __read_mostly;
35 struct kmem_cache *gfs2_qadata_cachep __read_mostly;
36 struct kmem_cache *gfs2_trans_cachep __read_mostly;
/linux/fs/xfs/
H A Dxfs_exchmaps_item.h28 struct kmem_cache;
56 extern struct kmem_cache *xfs_xmi_cache;
57 extern struct kmem_cache *xfs_xmd_cache;
H A Dxfs_refcount_item.h28 struct kmem_cache;
71 extern struct kmem_cache *xfs_cui_cache;
72 extern struct kmem_cache *xfs_cud_cache;
H A Dxfs_rmap_item.h31 struct kmem_cache;
71 extern struct kmem_cache *xfs_rui_cache;
72 extern struct kmem_cache *xfs_rud_cache;
/linux/include/net/
H A Dhotdata.h26 struct kmem_cache *skbuff_cache;
27 struct kmem_cache *skbuff_fclone_cache;
28 struct kmem_cache *skb_small_head_cache;
/linux/fs/ecryptfs/
H A Decryptfs_kernel.h533 extern struct kmem_cache *ecryptfs_auth_tok_list_item_cache;
534 extern struct kmem_cache *ecryptfs_file_info_cache;
535 extern struct kmem_cache *ecryptfs_dentry_info_cache;
536 extern struct kmem_cache *ecryptfs_inode_info_cache;
537 extern struct kmem_cache *ecryptfs_sb_info_cache;
538 extern struct kmem_cache *ecryptfs_header_cache;
539 extern struct kmem_cache *ecryptfs_xattr_cache;
540 extern struct kmem_cache *ecryptfs_key_record_cache;
541 extern struct kmem_cache *ecryptfs_key_sig_cache;
542 extern struct kmem_cache *ecryptfs_global_auth_tok_cach
[all...]
/linux/drivers/s390/cio/
H A Dvfio_ccw_private.h180 extern struct kmem_cache *vfio_ccw_io_region;
181 extern struct kmem_cache *vfio_ccw_cmd_region;
182 extern struct kmem_cache *vfio_ccw_schib_region;
183 extern struct kmem_cache *vfio_ccw_crw_region;

12345678910>>...20