/linux-6.1.9/mm/ |
D | slab.h | 18 struct kmem_cache *slab_cache; 35 struct kmem_cache *slab_cache; 205 struct kmem_cache { struct 261 extern struct kmem_cache *kmem_cache; 275 struct kmem_cache *kmalloc_slab(size_t, gfp_t); 277 void *__kmem_cache_alloc_node(struct kmem_cache *s, gfp_t gfpflags, 280 void __kmem_cache_free(struct kmem_cache *s, void *x, unsigned long caller); 286 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags); 288 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size, 291 extern void create_boot_cache(struct kmem_cache *, const char *name, [all …]
|
D | slub.c | 205 static inline bool kmem_cache_debug(struct kmem_cache *s) in kmem_cache_debug() 210 static inline bool slub_debug_orig_size(struct kmem_cache *s) in slub_debug_orig_size() 216 void *fixup_red_left(struct kmem_cache *s, void *p) in fixup_red_left() 224 static inline bool kmem_cache_has_cpu_partial(struct kmem_cache *s) in kmem_cache_has_cpu_partial() 302 static int sysfs_slab_add(struct kmem_cache *); 303 static int sysfs_slab_alias(struct kmem_cache *, const char *); 305 static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; } in sysfs_slab_add() 306 static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p) in sysfs_slab_alias() 311 static void debugfs_slab_add(struct kmem_cache *); 313 static inline void debugfs_slab_add(struct kmem_cache *s) { } in debugfs_slab_add() [all …]
|
D | slab.c | 210 static int drain_freelist(struct kmem_cache *cache, 212 static void free_block(struct kmem_cache *cachep, void **objpp, int len, 214 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list); 215 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp); 218 static inline void fixup_objfreelist_debug(struct kmem_cache *cachep, 220 static inline void fixup_slab_list(struct kmem_cache *cachep, 328 static int obj_offset(struct kmem_cache *cachep) in obj_offset() 333 static unsigned long long *dbg_redzone1(struct kmem_cache *cachep, void *objp) in dbg_redzone1() 340 static unsigned long long *dbg_redzone2(struct kmem_cache *cachep, void *objp) in dbg_redzone2() 351 static void **dbg_userword(struct kmem_cache *cachep, void *objp) in dbg_userword() [all …]
|
D | slab_common.c | 38 struct kmem_cache *kmem_cache; variable 83 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size() 138 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable() 158 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align, in find_mergeable() 161 struct kmem_cache *s; in find_mergeable() 205 static struct kmem_cache *create_cache(const char *name, in create_cache() 209 struct kmem_cache *root_cache) in create_cache() 211 struct kmem_cache *s; in create_cache() 218 s = kmem_cache_zalloc(kmem_cache, GFP_KERNEL); in create_cache() 241 kmem_cache_free(kmem_cache, s); in create_cache() [all …]
|
/linux-6.1.9/include/linux/ |
D | kasan.h | 11 struct kmem_cache; 131 void __kasan_cache_create_kmalloc(struct kmem_cache *cache); 132 static __always_inline void kasan_cache_create_kmalloc(struct kmem_cache *cache) in kasan_cache_create_kmalloc() 145 void __kasan_unpoison_object_data(struct kmem_cache *cache, void *object); 146 static __always_inline void kasan_unpoison_object_data(struct kmem_cache *cache, in kasan_unpoison_object_data() 153 void __kasan_poison_object_data(struct kmem_cache *cache, void *object); 154 static __always_inline void kasan_poison_object_data(struct kmem_cache *cache, in kasan_poison_object_data() 161 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache, 164 struct kmem_cache *cache, const void *object) in kasan_init_slab_obj() 171 bool __kasan_slab_free(struct kmem_cache *s, void *object, [all …]
|
D | slub_def.h | 90 struct kmem_cache { struct 147 void sysfs_slab_unlink(struct kmem_cache *); argument 148 void sysfs_slab_release(struct kmem_cache *); 150 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink() 153 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release() 158 void *fixup_red_left(struct kmem_cache *s, void *p); 160 static inline void *nearest_obj(struct kmem_cache *cache, const struct slab *slab, in nearest_obj() 172 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index() 179 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index() 187 static inline int objs_per_slab(const struct kmem_cache *cache, in objs_per_slab()
|
D | slab.h | 158 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size, 161 struct kmem_cache *kmem_cache_create_usercopy(const char *name, 166 void kmem_cache_destroy(struct kmem_cache *s); 167 int kmem_cache_shrink(struct kmem_cache *s); 350 extern struct kmem_cache * 444 void *kmem_cache_alloc(struct kmem_cache *s, gfp_t flags) __assume_slab_alignment __malloc; 445 void *kmem_cache_alloc_lru(struct kmem_cache *s, struct list_lru *lru, 447 void kmem_cache_free(struct kmem_cache *s, void *objp); 456 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p); 457 int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, void **p); [all …]
|
D | kfence.h | 93 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()
|
D | fault-inject.h | 70 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()
|
D | kmsan.h | 18 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()
|
D | slab_def.h | 12 struct kmem_cache { struct 89 static inline void *nearest_obj(struct kmem_cache *cache, const struct slab *slab, in nearest_obj() argument 107 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index() 114 static inline int objs_per_slab(const struct kmem_cache *cache, in objs_per_slab()
|
/linux-6.1.9/tools/testing/radix-tree/ |
D | linux.c | 19 struct kmem_cache { struct 31 void kmem_cache_set_non_kernel(struct kmem_cache *cachep, unsigned int val) in kmem_cache_set_non_kernel() argument 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() 56 void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *lru, in kmem_cache_alloc_lru() 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() 121 void kmem_cache_free_bulk(struct kmem_cache *cachep, size_t size, void **list) in kmem_cache_free_bulk() [all …]
|
/linux-6.1.9/tools/include/linux/ |
D | slab.h | 33 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.1.9/mm/kasan/ |
D | kasan.h | 181 struct kmem_cache *cache; 323 void kasan_print_aux_stacks(struct kmem_cache *cache, const void *object); 325 static inline void kasan_print_aux_stacks(struct kmem_cache *cache, const void *object) { } in kasan_print_aux_stacks() 335 void kasan_init_cache_meta(struct kmem_cache *cache, unsigned int *size); 336 void kasan_init_object_meta(struct kmem_cache *cache, const void *object); 337 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, 339 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, 342 static inline void kasan_init_cache_meta(struct kmem_cache *cache, unsigned int *size) { } in kasan_init_cache_meta() 343 static inline void kasan_init_object_meta(struct kmem_cache *cache, const void *object) { } in kasan_init_object_meta() 348 void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags); [all …]
|
D | quarantine.c | 129 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 …]
|
D | common.c | 120 void __kasan_cache_create_kmalloc(struct kmem_cache *cache) in __kasan_cache_create_kmalloc() 136 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() 295 void * __must_check __kasan_slab_alloc(struct kmem_cache *cache, in __kasan_slab_alloc() 330 static inline void *____kasan_kmalloc(struct kmem_cache *cache, in ____kasan_kmalloc() 377 void * __must_check __kasan_kmalloc(struct kmem_cache *cache, const void *object, in __kasan_kmalloc()
|
D | generic.c | 199 void kasan_cache_shrink(struct kmem_cache *cache) in kasan_cache_shrink() 204 void kasan_cache_shutdown(struct kmem_cache *cache) in kasan_cache_shutdown() 355 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in kasan_cache_create() 427 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, in kasan_get_alloc_meta() 435 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, in kasan_get_free_meta() 444 void kasan_init_object_meta(struct kmem_cache *cache, const void *object) in kasan_init_object_meta() 453 size_t kasan_metadata_size(struct kmem_cache *cache) in kasan_metadata_size() 467 struct kmem_cache *cache; in __kasan_record_aux_stack() 494 void kasan_save_alloc_info(struct kmem_cache *cache, void *object, gfp_t flags) in kasan_save_alloc_info() 503 void kasan_save_free_info(struct kmem_cache *cache, void *object) in kasan_save_free_info()
|
/linux-6.1.9/fs/jffs2/ |
D | malloc.c | 22 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.1.9/fs/dlm/ |
D | memory.c | 18 static struct kmem_cache *writequeue_cache; 19 static struct kmem_cache *mhandle_cache; 20 static struct kmem_cache *msg_cache; 21 static struct kmem_cache *lkb_cache; 22 static struct kmem_cache *rsb_cache;
|
/linux-6.1.9/drivers/target/ |
D | target_core_alua.h | 79 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.1.9/fs/gfs2/ |
D | util.h | 171 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.1.9/drivers/target/iscsi/ |
D | iscsi_target.h | 52 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.1.9/fs/ntfs/ |
D | ntfs.h | 38 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.1.9/lib/ |
D | slub_kunit.c | 14 struct kmem_cache *s = kmem_cache_create("TestSlub_RZ_alloc", 64, 0, in test_clobber_zone() 32 struct kmem_cache *s = kmem_cache_create("TestSlub_next_ptr_free", 64, 0, in test_next_pointer() 77 struct kmem_cache *s = kmem_cache_create("TestSlub_1th_word_free", 64, 0, in test_first_word() 92 struct kmem_cache *s = kmem_cache_create("TestSlub_50th_word_free", 64, 0, in test_clobber_50th_byte() 108 struct kmem_cache *s = kmem_cache_create("TestSlub_RZ_free", 64, 0, in test_clobber_redzone_free()
|
/linux-6.1.9/fs/xfs/ |
D | xfs_bmap_item.h | 28 struct kmem_cache; 68 extern struct kmem_cache *xfs_bui_cache; 69 extern struct kmem_cache *xfs_bud_cache;
|