Home
last modified time | relevance | path

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

12345678910>>...23

/linux-6.3-rc2/mm/
A Dslab.h14 struct kmem_cache *slab_cache;
27 struct kmem_cache *slab_cache;
215 struct kmem_cache { struct
269 extern struct kmem_cache *kmem_cache;
307 struct kmem_cache *
314 static inline struct kmem_cache *
660 struct kmem_cache *s) in unaccount_slab()
669 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
671 struct kmem_cache *cachep; in cache_from_obj()
721 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
[all …]
A Dslub.c1899 struct kmem_cache *s; in init_freelist_randomization()
2769 struct kmem_cache *s;
2780 struct kmem_cache *s; in flush_cpu_slab()
2848 struct kmem_cache *s; in slub_cpu_dead()
3818 struct kmem_cache *s;
4728 struct kmem_cache *s; in __check_heap_object()
4847 struct kmem_cache *s; in slab_mem_going_offline_callback()
4886 struct kmem_cache *s; in slab_mem_going_online_callback()
4974 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in bootstrap()
5063 struct kmem_cache *
[all …]
A Dslab.c855 struct kmem_cache *cachep; in init_cache_node_node()
937 struct kmem_cache *cachep; in cpuup_canceled()
1003 struct kmem_cache *cachep; in cpuup_prepare()
1092 struct kmem_cache *cachep; in drain_cache_node_node()
1268 struct kmem_cache *cachep; in kmem_cache_init_late()
1403 struct kmem_cache *cachep; in kmem_rcu_free()
1791 struct kmem_cache *
1795 struct kmem_cache *cachep; in __kmem_cache_alias()
3548 struct kmem_cache *cachep; in __kmem_obj_info()
3613 struct kmem_cache *s; in kmem_cache_free_bulk()
[all …]
A Dslab_common.c38 struct kmem_cache *kmem_cache; variable
163 struct kmem_cache *s; in find_mergeable()
213 struct kmem_cache *s; in create_cache()
277 struct kmem_cache *
391 struct kmem_cache *
666 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
678 struct kmem_cache *
745 struct kmem_cache *c; in kmalloc_size_roundup()
951 struct kmem_cache *s; in __do_kmalloc_node()
1004 struct kmem_cache *s; in kfree()
[all …]
/linux-6.3-rc2/include/linux/
A Dkasan.h11 struct kmem_cache;
146 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache,
149 struct kmem_cache *cache, const void *object) in kasan_init_slab_obj()
156 bool __kasan_slab_free(struct kmem_cache *s, void *object,
158 static __always_inline bool kasan_slab_free(struct kmem_cache *s, in kasan_slab_free()
180 void * __must_check __kasan_slab_alloc(struct kmem_cache *s,
183 struct kmem_cache *s, void *object, gfp_t flags, bool init) in kasan_slab_alloc()
247 static inline void *kasan_init_slab_obj(struct kmem_cache *cache, in kasan_init_slab_obj()
302 void kasan_cache_shrink(struct kmem_cache *cache);
303 void kasan_cache_shutdown(struct kmem_cache *cache);
[all …]
A Dslub_def.h92 struct kmem_cache { struct
153 void sysfs_slab_unlink(struct kmem_cache *); argument
154 void sysfs_slab_release(struct kmem_cache *);
156 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink()
159 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release()
164 void *fixup_red_left(struct kmem_cache *s, void *p);
166 static inline void *nearest_obj(struct kmem_cache *cache, const struct slab *slab, in nearest_obj()
178 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index()
185 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
193 static inline int objs_per_slab(const struct kmem_cache *cache, in objs_per_slab()
A Dslab.h173 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
176 struct kmem_cache *kmem_cache_create_usercopy(const char *name,
181 void kmem_cache_destroy(struct kmem_cache *s);
182 int kmem_cache_shrink(struct kmem_cache *s);
370 extern struct kmem_cache *
476 void *kmem_cache_alloc_lru(struct kmem_cache *s, struct list_lru *lru,
478 void kmem_cache_free(struct kmem_cache *s, void *objp);
487 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p);
504 void *kmalloc_trace(struct kmem_cache *s, gfp_t flags, size_t size)
507 void *kmalloc_node_trace(struct kmem_cache *s, gfp_t gfpflags,
[all …]
A Dkfence.h93 void kfence_shutdown_cache(struct kmem_cache *s);
99 void *__kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags);
117 static __always_inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) in kfence_alloc()
228 static inline void kfence_shutdown_cache(struct kmem_cache *s) { } in kfence_shutdown_cache()
229 static inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) { return NULL; } in kfence_alloc()
A Dfault-inject.h70 struct kmem_cache;
74 int should_failslab(struct kmem_cache *s, gfp_t gfpflags);
76 extern bool __should_failslab(struct kmem_cache *s, gfp_t gfpflags);
78 static inline bool __should_failslab(struct kmem_cache *s, gfp_t gfpflags) in __should_failslab()
A Dkmsan.h18 struct kmem_cache;
99 void kmsan_slab_alloc(struct kmem_cache *s, void *object, gfp_t flags);
108 void kmsan_slab_free(struct kmem_cache *s, void *object);
266 static inline void kmsan_slab_alloc(struct kmem_cache *s, void *object, in kmsan_slab_alloc()
271 static inline void kmsan_slab_free(struct kmem_cache *s, void *object) in kmsan_slab_free()
A Dslab_def.h12 struct kmem_cache { struct
91 static inline void *nearest_obj(struct kmem_cache *cache, const struct slab *slab, in nearest_obj() argument
109 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
116 static inline int objs_per_slab(const struct kmem_cache *cache, in objs_per_slab()
/linux-6.3-rc2/tools/testing/radix-tree/
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()
96 void kmem_cache_free_locked(struct kmem_cache *cachep, void *objp) in kmem_cache_free_locked()
114 void kmem_cache_free(struct kmem_cache *cachep, void *objp) in kmem_cache_free()
132 void kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink()
190 struct kmem_cache *
194 struct kmem_cache *ret = malloc(sizeof(*ret)); in kmem_cache_create()
[all …]
/linux-6.3-rc2/tools/include/linux/
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-6.3-rc2/lib/
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-6.3-rc2/mm/kasan/
A Dkasan.h208 struct kmem_cache *cache;
327 size_t kasan_get_alloc_size(void *object, struct kmem_cache *cache);
344 void kasan_print_aux_stacks(struct kmem_cache *cache, const void *object);
356 void kasan_init_cache_meta(struct kmem_cache *cache, unsigned int *size);
357 void kasan_init_object_meta(struct kmem_cache *cache, const void *object);
358 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache,
360 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache,
370 void kasan_save_free_info(struct kmem_cache *cache, void *object);
374 bool kasan_quarantine_put(struct kmem_cache *cache, void *object);
376 void kasan_quarantine_remove_cache(struct kmem_cache *cache);
[all …]
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()
174 static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache) in qlist_free_all()
183 struct kmem_cache *obj_cache = in qlist_free_all()
193 bool kasan_quarantine_put(struct kmem_cache *cache, void *object) in kasan_quarantine_put()
300 struct kmem_cache *cache) in qlist_move_cache()
311 struct kmem_cache *obj_cache = qlink_to_cache(curr); in qlist_move_cache()
325 struct kmem_cache *cache = arg; in __per_cpu_remove_cache()
334 struct kmem_cache *cache = arg; in __per_cpu_remove_cache()
[all …]
A Dcommon.c136 void __kasan_unpoison_object_data(struct kmem_cache *cache, void *object) in __kasan_unpoison_object_data()
141 void __kasan_poison_object_data(struct kmem_cache *cache, void *object) in __kasan_poison_object_data()
161 static inline u8 assign_tag(struct kmem_cache *cache, in assign_tag()
187 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache, in __kasan_init_slab_obj()
200 static inline bool ____kasan_slab_free(struct kmem_cache *cache, void *object, in ____kasan_slab_free()
241 bool __kasan_slab_free(struct kmem_cache *cache, void *object, in __kasan_slab_free()
298 void * __must_check __kasan_slab_alloc(struct kmem_cache *cache, in __kasan_slab_alloc()
333 static inline void *____kasan_kmalloc(struct kmem_cache *cache, in ____kasan_kmalloc()
380 void * __must_check __kasan_kmalloc(struct kmem_cache *cache, const void *object, in __kasan_kmalloc()
A Dgeneric.c202 void kasan_cache_shrink(struct kmem_cache *cache) in kasan_cache_shrink()
207 void kasan_cache_shutdown(struct kmem_cache *cache) in kasan_cache_shutdown()
358 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in kasan_cache_create()
430 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, in kasan_get_alloc_meta()
438 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, in kasan_get_free_meta()
447 void kasan_init_object_meta(struct kmem_cache *cache, const void *object) in kasan_init_object_meta()
456 size_t kasan_metadata_size(struct kmem_cache *cache, bool in_object) in kasan_metadata_size()
477 struct kmem_cache *cache; in __kasan_record_aux_stack()
504 void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags) in kasan_save_alloc_info()
513 void kasan_save_free_info(struct kmem_cache *cache, void *object) in kasan_save_free_info()
/linux-6.3-rc2/fs/jffs2/
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-6.3-rc2/fs/dlm/
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-6.3-rc2/drivers/target/
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-6.3-rc2/fs/gfs2/
A Dutil.h171 extern struct kmem_cache *gfs2_glock_cachep;
172 extern struct kmem_cache *gfs2_glock_aspace_cachep;
173 extern struct kmem_cache *gfs2_inode_cachep;
174 extern struct kmem_cache *gfs2_bufdata_cachep;
175 extern struct kmem_cache *gfs2_rgrpd_cachep;
176 extern struct kmem_cache *gfs2_quotad_cachep;
177 extern struct kmem_cache *gfs2_qadata_cachep;
178 extern struct kmem_cache *gfs2_trans_cachep;
/linux-6.3-rc2/drivers/target/iscsi/
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-6.3-rc2/fs/ntfs/
A Dntfs.h38 extern struct kmem_cache *ntfs_name_cache;
39 extern struct kmem_cache *ntfs_inode_cache;
40 extern struct kmem_cache *ntfs_big_inode_cache;
41 extern struct kmem_cache *ntfs_attr_ctx_cache;
42 extern struct kmem_cache *ntfs_index_ctx_cache;
/linux-6.3-rc2/fs/xfs/
A Dxfs_refcount_item.h28 struct kmem_cache;
71 extern struct kmem_cache *xfs_cui_cache;
72 extern struct kmem_cache *xfs_cud_cache;

Completed in 56 milliseconds

12345678910>>...23