Home
last modified time | relevance | path

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

12345678910>>...23

/linux/mm/
H A Dslab.h55 struct kmem_cache *slab_cache;
251 struct kmem_cache { struct
312 void sysfs_slab_unlink(struct kmem_cache *s); argument
313 void sysfs_slab_release(struct kmem_cache *s);
379 extern struct kmem_cache *kmem_cache;
405 static inline struct kmem_cache *
428 int slab_unmergeable(struct kmem_cache *s);
431 struct kmem_cache *
476 bool __kmem_cache_empty(struct kmem_cache *);
479 int __kmem_cache_shrink(struct kmem_cache *);
[all …]
H A Dslub.c2310 struct kmem_cache *s; in init_freelist_randomization()
3126 struct kmem_cache *s;
3137 struct kmem_cache *s; in flush_cpu_slab()
3205 struct kmem_cache *s; in slub_cpu_dead()
3887 struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, gfp_t flags) in slab_pre_alloc_hook()
4106 struct kmem_cache *s; in __do_kmalloc_node()
4542 struct kmem_cache *s; in kfree()
4567 struct kmem_cache *s;
5498 struct kmem_cache *s; in __check_heap_object()
5745 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in bootstrap()
[all …]
H A Dslab_common.c41 struct kmem_cache *kmem_cache; variable
164 struct kmem_cache *s; in find_mergeable()
210 struct kmem_cache *s; in create_cache()
272 struct kmem_cache *
279 struct kmem_cache *s = NULL; in kmem_cache_create_usercopy()
386 struct kmem_cache *
424 struct kmem_cache *s, *s2; in slab_caches_to_rcu_destroy_workfn()
645 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
656 struct kmem_cache *
1079 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in slab_show()
[all …]
/linux/include/linux/
H A Dkasan.h12 struct kmem_cache;
168 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache,
171 struct kmem_cache *cache, const void *object) in kasan_init_slab_obj()
178 bool __kasan_slab_free(struct kmem_cache *s, void *object,
180 static __always_inline bool kasan_slab_free(struct kmem_cache *s, in kasan_slab_free()
195 void * __must_check __kasan_slab_alloc(struct kmem_cache *s,
198 struct kmem_cache *s, void *object, gfp_t flags, bool init) in kasan_slab_alloc()
369 static inline void *kasan_init_slab_obj(struct kmem_cache *cache, in kasan_init_slab_obj()
435 void kasan_cache_shrink(struct kmem_cache *cache);
436 void kasan_cache_shutdown(struct kmem_cache *cache);
[all …]
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);
118 static __always_inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) in kfence_alloc()
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.h237 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
240 struct kmem_cache *kmem_cache_create_usercopy(const char *name,
245 void kmem_cache_destroy(struct kmem_cache *s);
246 int kmem_cache_shrink(struct kmem_cache *s);
429 extern struct kmem_cache *
544 void *kmem_cache_alloc_noprof(struct kmem_cache *cachep,
552 void kmem_cache_free(struct kmem_cache *s, void *objp);
561 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p);
575 void *kmem_cache_alloc_node_noprof(struct kmem_cache *s, gfp_t flags,
582 void *kmalloc_node_trace_noprof(struct kmem_cache *s, gfp_t gfpflags,
[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);
270 static inline void kmsan_slab_alloc(struct kmem_cache *s, void *object, in kmsan_slab_alloc()
275 static inline void kmsan_slab_free(struct kmem_cache *s, void *object) in kmsan_slab_free()
H A Dfault-inject.h92 struct kmem_cache;
105 int should_failslab(struct kmem_cache *s, gfp_t gfpflags);
107 extern bool __should_failslab(struct kmem_cache *s, gfp_t gfpflags);
109 static inline bool __should_failslab(struct kmem_cache *s, gfp_t gfpflags) in __should_failslab()
/linux/tools/testing/radix-tree/
H A Dlinux.c19 struct kmem_cache { struct
36 unsigned long kmem_cache_get_alloc(struct kmem_cache *cachep) in kmem_cache_get_alloc()
41 unsigned long kmem_cache_nr_allocated(struct kmem_cache *cachep) in kmem_cache_nr_allocated()
46 unsigned long kmem_cache_nr_tallocated(struct kmem_cache *cachep) in kmem_cache_nr_tallocated()
51 void kmem_cache_zero_nr_tallocated(struct kmem_cache *cachep) in kmem_cache_zero_nr_tallocated()
110 void kmem_cache_free_locked(struct kmem_cache *cachep, void *objp) in kmem_cache_free_locked()
119 void kmem_cache_free(struct kmem_cache *cachep, void *objp) in kmem_cache_free()
137 void kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
211 struct kmem_cache *
215 struct kmem_cache *ret = malloc(sizeof(*ret)); in kmem_cache_create()
[all …]
/linux/tools/include/linux/
H A Dslab.h32 void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *, int flags);
33 static inline void *kmem_cache_alloc(struct kmem_cache *cachep, int flags) in kmem_cache_alloc()
37 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
39 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
43 void kmem_cache_free_bulk(struct kmem_cache *cachep, size_t size, void **list);
44 int kmem_cache_alloc_bulk(struct kmem_cache *cachep, gfp_t gfp, size_t size,
/linux/lib/
H A Dslub_kunit.c19 static struct kmem_cache *test_kmem_cache_create(const char *name, in test_kmem_cache_create()
22 struct kmem_cache *s = kmem_cache_create(name, size, 0, in test_kmem_cache_create()
30 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_alloc", 64, in test_clobber_zone()
48 struct kmem_cache *s = test_kmem_cache_create("TestSlub_next_ptr_free", in test_next_pointer()
93 struct kmem_cache *s = test_kmem_cache_create("TestSlub_1th_word_free", in test_first_word()
108 struct kmem_cache *s = test_kmem_cache_create("TestSlub_50th_word_free", in test_clobber_50th_byte()
124 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_free", 64, in test_clobber_redzone_free()
141 struct kmem_cache *s = test_kmem_cache_create("TestSlub_RZ_kmalloc", 32, in test_kmalloc_redzone_access()
/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);
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);
400 void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags);
401 void kasan_save_free_info(struct kmem_cache *cache, void *object);
404 bool kasan_quarantine_put(struct kmem_cache *cache, void *object);
406 void kasan_quarantine_remove_cache(struct kmem_cache *cache);
[all …]
H A Dquarantine.c129 static struct kmem_cache *qlink_to_cache(struct qlist_node *qlink) in qlink_to_cache()
134 static void *qlink_to_object(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_to_object()
143 static void qlink_free(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_free()
166 static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache) in qlist_free_all()
175 struct kmem_cache *obj_cache = in qlist_free_all()
185 bool kasan_quarantine_put(struct kmem_cache *cache, void *object) in kasan_quarantine_put()
292 struct kmem_cache *cache) in qlist_move_cache()
303 struct kmem_cache *obj_cache = qlink_to_cache(curr); in qlist_move_cache()
316 struct kmem_cache *cache = arg; in __per_cpu_remove_cache()
342 void kasan_quarantine_remove_cache(struct kmem_cache *cache) in kasan_quarantine_remove_cache()
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()
211 static inline bool poison_slab_object(struct kmem_cache *cache, void *object, in poison_slab_object()
245 bool __kasan_slab_free(struct kmem_cache *cache, void *object, in __kasan_slab_free()
301 static inline void unpoison_slab_object(struct kmem_cache *cache, void *object, in unpoison_slab_object()
315 void * __must_check __kasan_slab_alloc(struct kmem_cache *cache, in __kasan_slab_alloc()
343 static inline void poison_kmalloc_redzone(struct kmem_cache *cache, in poison_kmalloc_redzone()
374 void * __must_check __kasan_kmalloc(struct kmem_cache *cache, const void *object, in __kasan_kmalloc()
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()
453 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, in kasan_get_alloc_meta()
461 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, in kasan_get_free_meta()
470 void kasan_init_object_meta(struct kmem_cache *cache, const void *object) in kasan_init_object_meta()
506 size_t kasan_metadata_size(struct kmem_cache *cache, bool in_object) in kasan_metadata_size()
527 struct kmem_cache *cache; in __kasan_record_aux_stack()
554 void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags) in kasan_save_alloc_info()
568 void kasan_save_free_info(struct kmem_cache *cache, void *object) in kasan_save_free_info()
/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/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/
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;
/linux/drivers/target/iscsi/
H A Discsi_target.h52 extern struct kmem_cache *lio_dr_cache;
53 extern struct kmem_cache *lio_ooo_cache;
54 extern struct kmem_cache *lio_qr_cache;
55 extern struct kmem_cache *lio_r2t_cache;
/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;
H A Dxfs_bmap_item.h28 struct kmem_cache;
68 extern struct kmem_cache *xfs_bui_cache;
69 extern struct kmem_cache *xfs_bud_cache;
H A Dxfs_extfree_item.h12 struct kmem_cache;
88 extern struct kmem_cache *xfs_efi_cache;
89 extern struct kmem_cache *xfs_efd_cache;

12345678910>>...23