/Linux-v5.15/mm/ |
D | slab.h | 20 struct kmem_cache { struct 75 extern struct kmem_cache *kmem_cache; 89 struct kmem_cache *kmalloc_slab(size_t, gfp_t); 95 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags); 97 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size, 100 extern void create_boot_cache(struct kmem_cache *, const char *name, 104 int slab_unmergeable(struct kmem_cache *s); 105 struct kmem_cache *find_mergeable(unsigned size, unsigned align, 108 struct kmem_cache * 115 static inline struct kmem_cache * [all …]
|
D | slub.c | 187 static inline bool kmem_cache_debug(struct kmem_cache *s) in kmem_cache_debug() 192 void *fixup_red_left(struct kmem_cache *s, void *p) in fixup_red_left() 200 static inline bool kmem_cache_has_cpu_partial(struct kmem_cache *s) in kmem_cache_has_cpu_partial() 278 static int sysfs_slab_add(struct kmem_cache *); 279 static int sysfs_slab_alias(struct kmem_cache *, const char *); 281 static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; } in sysfs_slab_add() 282 static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p) in sysfs_slab_alias() 287 static void debugfs_slab_add(struct kmem_cache *); 289 static inline void debugfs_slab_add(struct kmem_cache *s) { } in debugfs_slab_add() 292 static inline void stat(const struct kmem_cache *s, enum stat_item si) in stat() [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 91 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size() 115 void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p) in __kmem_cache_free_bulk() 127 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr, in __kmem_cache_alloc_bulk() 174 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable() 194 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align, in find_mergeable() 197 struct kmem_cache *s; in find_mergeable() 241 static struct kmem_cache *create_cache(const char *name, in create_cache() 245 struct kmem_cache *root_cache) in create_cache() 247 struct kmem_cache *s; in create_cache() [all …]
|
D | slob.c | 591 int __kmem_cache_create(struct kmem_cache *c, slab_flags_t flags) in __kmem_cache_create() 601 static void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node) in slob_alloc_node() 630 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc() 643 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node() 666 void kmem_cache_free(struct kmem_cache *c, void *b) in kmem_cache_free() 682 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p) in kmem_cache_free_bulk() 688 int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, in kmem_cache_alloc_bulk() 695 int __kmem_cache_shutdown(struct kmem_cache *c) in __kmem_cache_shutdown() 701 void __kmem_cache_release(struct kmem_cache *c) in __kmem_cache_release() 705 int __kmem_cache_shrink(struct kmem_cache *d) in __kmem_cache_shrink() [all …]
|
/Linux-v5.15/include/linux/ |
D | kasan.h | 10 struct kmem_cache; 167 void __kasan_cache_create(struct kmem_cache *cache, unsigned int *size, 169 static __always_inline void kasan_cache_create(struct kmem_cache *cache, in kasan_cache_create() 176 void __kasan_cache_create_kmalloc(struct kmem_cache *cache); 177 static __always_inline void kasan_cache_create_kmalloc(struct kmem_cache *cache) in kasan_cache_create_kmalloc() 183 size_t __kasan_metadata_size(struct kmem_cache *cache); 184 static __always_inline size_t kasan_metadata_size(struct kmem_cache *cache) in kasan_metadata_size() 198 void __kasan_unpoison_object_data(struct kmem_cache *cache, void *object); 199 static __always_inline void kasan_unpoison_object_data(struct kmem_cache *cache, in kasan_unpoison_object_data() 206 void __kasan_poison_object_data(struct kmem_cache *cache, void *object); [all …]
|
D | slub_def.h | 90 struct kmem_cache { struct 157 void sysfs_slab_unlink(struct kmem_cache *); argument 158 void sysfs_slab_release(struct kmem_cache *); 160 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink() 163 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release() 168 void object_err(struct kmem_cache *s, struct page *page, 171 void *fixup_red_left(struct kmem_cache *s, void *p); 173 static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, in nearest_obj() 185 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index() 192 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index() [all …]
|
D | slab.h | 147 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size, 150 struct kmem_cache *kmem_cache_create_usercopy(const char *name, 155 void kmem_cache_destroy(struct kmem_cache *); 156 int kmem_cache_shrink(struct kmem_cache *); 331 extern struct kmem_cache * 429 void *kmem_cache_alloc(struct kmem_cache *, gfp_t flags) __assume_slab_alignment __malloc; 430 void kmem_cache_free(struct kmem_cache *, void *); 439 void kmem_cache_free_bulk(struct kmem_cache *, size_t, void **); 440 int kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **); 453 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node) __assume_slab_alignment __m… [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() 209 static inline void kfence_shutdown_cache(struct kmem_cache *s) { } in kfence_shutdown_cache() 210 static inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) { return NULL; } in kfence_alloc()
|
D | slab_def.h | 12 struct kmem_cache { struct 36 struct kmem_cache *freelist_cache; argument 90 static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, in nearest_obj() argument 108 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index() 115 static inline int objs_per_slab_page(const struct kmem_cache *cache, in objs_per_slab_page()
|
D | fault-inject.h | 65 struct kmem_cache; 67 int should_failslab(struct kmem_cache *s, gfp_t gfpflags); 69 extern bool __should_failslab(struct kmem_cache *s, gfp_t gfpflags); 71 static inline bool __should_failslab(struct kmem_cache *s, gfp_t gfpflags) in __should_failslab()
|
/Linux-v5.15/mm/kasan/ |
D | common.c | 140 void __kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in __kasan_cache_create() 216 void __kasan_cache_create_kmalloc(struct kmem_cache *cache) in __kasan_cache_create_kmalloc() 221 size_t __kasan_metadata_size(struct kmem_cache *cache) in __kasan_metadata_size() 231 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, in kasan_get_alloc_meta() 240 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, in kasan_get_free_meta() 260 void __kasan_unpoison_object_data(struct kmem_cache *cache, void *object) in __kasan_unpoison_object_data() 265 void __kasan_poison_object_data(struct kmem_cache *cache, void *object) in __kasan_poison_object_data() 285 static inline u8 assign_tag(struct kmem_cache *cache, in assign_tag() 311 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache, in __kasan_init_slab_obj() 328 static inline bool ____kasan_slab_free(struct kmem_cache *cache, void *object, in ____kasan_slab_free() [all …]
|
D | quarantine.c | 118 static struct kmem_cache *qlink_to_cache(struct qlist_node *qlink) in qlink_to_cache() 123 static void *qlink_to_object(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_to_object() 132 static void qlink_free(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_free() 152 static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache) in qlist_free_all() 161 struct kmem_cache *obj_cache = in qlist_free_all() 171 bool kasan_quarantine_put(struct kmem_cache *cache, void *object) in kasan_quarantine_put() 278 struct kmem_cache *cache) in qlist_move_cache() 289 struct kmem_cache *obj_cache = qlink_to_cache(curr); in qlist_move_cache() 302 struct kmem_cache *cache = arg; in per_cpu_remove_cache() 312 void kasan_quarantine_remove_cache(struct kmem_cache *cache) in kasan_quarantine_remove_cache()
|
D | kasan.h | 192 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, 195 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, 256 void kasan_set_free_info(struct kmem_cache *cache, void *object, u8 tag); 257 struct kasan_track *kasan_get_free_track(struct kmem_cache *cache, 262 bool kasan_quarantine_put(struct kmem_cache *cache, void *object); 264 void kasan_quarantine_remove_cache(struct kmem_cache *cache); 266 static inline bool kasan_quarantine_put(struct kmem_cache *cache, void *object) { return false; } in kasan_quarantine_put() 268 static inline void kasan_quarantine_remove_cache(struct kmem_cache *cache) { } in kasan_quarantine_remove_cache()
|
/Linux-v5.15/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-v5.15/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-v5.15/tools/testing/radix-tree/ |
D | linux.c | 20 struct kmem_cache { struct 29 void *kmem_cache_alloc(struct kmem_cache *cachep, int gfp) in kmem_cache_alloc() argument 62 void kmem_cache_free(struct kmem_cache *cachep, void *objp) in kmem_cache_free() 107 struct kmem_cache * 111 struct kmem_cache *ret = malloc(sizeof(*ret)); in kmem_cache_create()
|
/Linux-v5.15/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;
|
D | util.c | 28 struct kmem_cache *gfs2_glock_cachep __read_mostly; 29 struct kmem_cache *gfs2_glock_aspace_cachep __read_mostly; 30 struct kmem_cache *gfs2_inode_cachep __read_mostly; 31 struct kmem_cache *gfs2_bufdata_cachep __read_mostly; 32 struct kmem_cache *gfs2_rgrpd_cachep __read_mostly; 33 struct kmem_cache *gfs2_quotad_cachep __read_mostly; 34 struct kmem_cache *gfs2_qadata_cachep __read_mostly; 35 struct kmem_cache *gfs2_trans_cachep __read_mostly;
|
/Linux-v5.15/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-v5.15/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-v5.15/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-v5.15/tools/testing/radix-tree/linux/ |
D | slab.h | 20 void *kmem_cache_alloc(struct kmem_cache *cachep, int flags); 21 void kmem_cache_free(struct kmem_cache *cachep, void *objp); 23 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
|
/Linux-v5.15/include/linux/ceph/ |
D | libceph.h | 284 extern struct kmem_cache *ceph_inode_cachep; 285 extern struct kmem_cache *ceph_cap_cachep; 286 extern struct kmem_cache *ceph_cap_flush_cachep; 287 extern struct kmem_cache *ceph_dentry_cachep; 288 extern struct kmem_cache *ceph_file_cachep; 289 extern struct kmem_cache *ceph_dir_file_cachep; 290 extern struct kmem_cache *ceph_mds_request_cachep;
|
/Linux-v5.15/fs/ecryptfs/ |
D | ecryptfs_kernel.h | 533 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_cache; [all …]
|