Home
last modified time | relevance | path

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

12345678910>>...18

/Linux-v4.19/mm/
Dslab.h20 struct kmem_cache { struct
75 extern struct kmem_cache *kmem_cache;
89 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
94 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
96 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size,
99 extern void create_boot_cache(struct kmem_cache *, const char *name,
103 int slab_unmergeable(struct kmem_cache *s);
104 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
107 struct kmem_cache *
115 static inline struct kmem_cache *
[all …]
Dslab_common.c33 struct kmem_cache *kmem_cache; variable
78 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size()
103 void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p) in __kmem_cache_free_bulk()
115 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr, in __kmem_cache_alloc_bulk()
134 void slab_init_memcg_params(struct kmem_cache *s) in slab_init_memcg_params()
142 static int init_memcg_params(struct kmem_cache *s, in init_memcg_params()
143 struct mem_cgroup *memcg, struct kmem_cache *root_cache) in init_memcg_params()
170 static void destroy_memcg_params(struct kmem_cache *s) in destroy_memcg_params()
184 static int update_memcg_params(struct kmem_cache *s, int new_array_size) in update_memcg_params()
207 struct kmem_cache *s; in memcg_update_all_caches()
[all …]
Dslub.c118 static inline int kmem_cache_debug(struct kmem_cache *s) in kmem_cache_debug()
127 void *fixup_red_left(struct kmem_cache *s, void *p) in fixup_red_left()
135 static inline bool kmem_cache_has_cpu_partial(struct kmem_cache *s) in kmem_cache_has_cpu_partial()
216 static int sysfs_slab_add(struct kmem_cache *);
217 static int sysfs_slab_alias(struct kmem_cache *, const char *);
218 static void memcg_propagate_slab_attrs(struct kmem_cache *s);
219 static void sysfs_slab_remove(struct kmem_cache *s);
221 static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; } in sysfs_slab_add()
222 static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p) in sysfs_slab_alias()
224 static inline void memcg_propagate_slab_attrs(struct kmem_cache *s) { } in memcg_propagate_slab_attrs()
[all …]
Dslab.c209 static int drain_freelist(struct kmem_cache *cache,
211 static void free_block(struct kmem_cache *cachep, void **objpp, int len,
213 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list);
214 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp);
217 static inline void fixup_objfreelist_debug(struct kmem_cache *cachep,
219 static inline void fixup_slab_list(struct kmem_cache *cachep,
327 static int obj_offset(struct kmem_cache *cachep) in obj_offset()
332 static unsigned long long *dbg_redzone1(struct kmem_cache *cachep, void *objp) in dbg_redzone1()
339 static unsigned long long *dbg_redzone2(struct kmem_cache *cachep, void *objp) in dbg_redzone2()
350 static void **dbg_userword(struct kmem_cache *cachep, void *objp) in dbg_userword()
[all …]
Dslob.c527 int __kmem_cache_create(struct kmem_cache *c, slab_flags_t flags) in __kmem_cache_create()
537 static void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node) in slob_alloc_node()
567 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc()
580 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node()
603 void kmem_cache_free(struct kmem_cache *c, void *b) in kmem_cache_free()
619 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p) in kmem_cache_free_bulk()
625 int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, in kmem_cache_alloc_bulk()
632 int __kmem_cache_shutdown(struct kmem_cache *c) in __kmem_cache_shutdown()
638 void __kmem_cache_release(struct kmem_cache *c) in __kmem_cache_release()
642 int __kmem_cache_shrink(struct kmem_cache *d) in __kmem_cache_shrink()
[all …]
/Linux-v4.19/include/linux/
Dkasan.h7 struct kmem_cache;
46 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size,
48 void kasan_cache_shrink(struct kmem_cache *cache);
49 void kasan_cache_shutdown(struct kmem_cache *cache);
52 void kasan_unpoison_object_data(struct kmem_cache *cache, void *object);
53 void kasan_poison_object_data(struct kmem_cache *cache, void *object);
54 void kasan_init_slab_obj(struct kmem_cache *cache, const void *object);
59 void kasan_kmalloc(struct kmem_cache *s, const void *object, size_t size,
63 void kasan_slab_alloc(struct kmem_cache *s, void *object, gfp_t flags);
64 bool kasan_slab_free(struct kmem_cache *s, void *object, unsigned long ip);
[all …]
Dslab.h140 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
143 struct kmem_cache *kmem_cache_create_usercopy(const char *name,
148 void kmem_cache_destroy(struct kmem_cache *);
149 int kmem_cache_shrink(struct kmem_cache *);
151 void memcg_create_kmem_cache(struct mem_cgroup *, struct kmem_cache *);
299 extern struct kmem_cache *kmalloc_caches[KMALLOC_SHIFT_HIGH + 1];
301 extern struct kmem_cache *kmalloc_dma_caches[KMALLOC_SHIFT_HIGH + 1];
356 void *kmem_cache_alloc(struct kmem_cache *, gfp_t flags) __assume_slab_alignment __malloc;
357 void kmem_cache_free(struct kmem_cache *, void *);
366 void kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
[all …]
Dslub_def.h82 struct kmem_cache { struct
158 void sysfs_slab_unlink(struct kmem_cache *); argument
159 void sysfs_slab_release(struct kmem_cache *);
161 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink()
164 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release()
169 void object_err(struct kmem_cache *s, struct page *page,
172 void *fixup_red_left(struct kmem_cache *s, void *p);
174 static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, in nearest_obj()
Dfault-inject.h65 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()
Dslab_def.h11 struct kmem_cache { struct
35 struct kmem_cache *freelist_cache; argument
95 static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, in nearest_obj() argument
/Linux-v4.19/mm/kasan/
Dquarantine.c125 static struct kmem_cache *qlink_to_cache(struct qlist_node *qlink) in qlink_to_cache()
130 static void *qlink_to_object(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_to_object()
139 static void qlink_free(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_free()
153 static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache) in qlist_free_all()
162 struct kmem_cache *obj_cache = in qlist_free_all()
172 void quarantine_put(struct kasan_free_meta *info, struct kmem_cache *cache) in quarantine_put()
265 struct kmem_cache *cache) in qlist_move_cache()
276 struct kmem_cache *obj_cache = qlink_to_cache(curr); in qlist_move_cache()
289 struct kmem_cache *cache = arg; in per_cpu_remove_cache()
299 void quarantine_remove_cache(struct kmem_cache *cache) in quarantine_remove_cache()
Dkasan.h97 struct kasan_alloc_meta *get_alloc_info(struct kmem_cache *cache,
99 struct kasan_free_meta *get_free_info(struct kmem_cache *cache,
113 void quarantine_put(struct kasan_free_meta *info, struct kmem_cache *cache);
115 void quarantine_remove_cache(struct kmem_cache *cache);
118 struct kmem_cache *cache) { } in quarantine_put()
120 static inline void quarantine_remove_cache(struct kmem_cache *cache) { } in quarantine_remove_cache()
Dkasan.c338 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in kasan_cache_create()
378 void kasan_cache_shrink(struct kmem_cache *cache) in kasan_cache_shrink()
383 void kasan_cache_shutdown(struct kmem_cache *cache) in kasan_cache_shutdown()
389 size_t kasan_metadata_size(struct kmem_cache *cache) in kasan_metadata_size()
404 void kasan_unpoison_object_data(struct kmem_cache *cache, void *object) in kasan_unpoison_object_data()
409 void kasan_poison_object_data(struct kmem_cache *cache, void *object) in kasan_poison_object_data()
463 struct kasan_alloc_meta *get_alloc_info(struct kmem_cache *cache, in get_alloc_info()
470 struct kasan_free_meta *get_free_info(struct kmem_cache *cache, in get_free_info()
477 void kasan_init_slab_obj(struct kmem_cache *cache, const void *object) in kasan_init_slab_obj()
488 void kasan_slab_alloc(struct kmem_cache *cache, void *object, gfp_t flags) in kasan_slab_alloc()
[all …]
/Linux-v4.19/fs/jffs2/
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-v4.19/tools/testing/radix-tree/
Dlinux.c20 struct kmem_cache { struct
28 void *kmem_cache_alloc(struct kmem_cache *cachep, int flags) in kmem_cache_alloc() argument
55 void kmem_cache_free(struct kmem_cache *cachep, void *objp) in kmem_cache_free()
100 struct kmem_cache *
104 struct kmem_cache *ret = malloc(sizeof(*ret)); in kmem_cache_create()
/Linux-v4.19/fs/gfs2/
Dutil.c24 struct kmem_cache *gfs2_glock_cachep __read_mostly;
25 struct kmem_cache *gfs2_glock_aspace_cachep __read_mostly;
26 struct kmem_cache *gfs2_inode_cachep __read_mostly;
27 struct kmem_cache *gfs2_bufdata_cachep __read_mostly;
28 struct kmem_cache *gfs2_rgrpd_cachep __read_mostly;
29 struct kmem_cache *gfs2_quotad_cachep __read_mostly;
30 struct kmem_cache *gfs2_qadata_cachep __read_mostly;
Dutil.h150 extern struct kmem_cache *gfs2_glock_cachep;
151 extern struct kmem_cache *gfs2_glock_aspace_cachep;
152 extern struct kmem_cache *gfs2_inode_cachep;
153 extern struct kmem_cache *gfs2_bufdata_cachep;
154 extern struct kmem_cache *gfs2_rgrpd_cachep;
155 extern struct kmem_cache *gfs2_quotad_cachep;
156 extern struct kmem_cache *gfs2_qadata_cachep;
/Linux-v4.19/drivers/target/
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-v4.19/drivers/target/iscsi/
Discsi_target.h53 extern struct kmem_cache *lio_dr_cache;
54 extern struct kmem_cache *lio_ooo_cache;
55 extern struct kmem_cache *lio_qr_cache;
56 extern struct kmem_cache *lio_r2t_cache;
/Linux-v4.19/fs/ntfs/
Dntfs.h52 extern struct kmem_cache *ntfs_name_cache;
53 extern struct kmem_cache *ntfs_inode_cache;
54 extern struct kmem_cache *ntfs_big_inode_cache;
55 extern struct kmem_cache *ntfs_attr_ctx_cache;
56 extern struct kmem_cache *ntfs_index_ctx_cache;
/Linux-v4.19/tools/testing/radix-tree/linux/
Dslab.h20 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 *
/Linux-v4.19/fs/notify/fanotify/
Dfanotify.h6 extern struct kmem_cache *fanotify_mark_cache;
7 extern struct kmem_cache *fanotify_event_cachep;
8 extern struct kmem_cache *fanotify_perm_event_cachep;
/Linux-v4.19/fs/ecryptfs/
Decryptfs_kernel.h562 extern struct kmem_cache *ecryptfs_auth_tok_list_item_cache;
563 extern struct kmem_cache *ecryptfs_file_info_cache;
564 extern struct kmem_cache *ecryptfs_dentry_info_cache;
565 extern struct kmem_cache *ecryptfs_inode_info_cache;
566 extern struct kmem_cache *ecryptfs_sb_info_cache;
567 extern struct kmem_cache *ecryptfs_header_cache;
568 extern struct kmem_cache *ecryptfs_xattr_cache;
569 extern struct kmem_cache *ecryptfs_key_record_cache;
570 extern struct kmem_cache *ecryptfs_key_sig_cache;
571 extern struct kmem_cache *ecryptfs_global_auth_tok_cache;
[all …]
/Linux-v4.19/include/linux/ceph/
Dlibceph.h260 extern struct kmem_cache *ceph_inode_cachep;
261 extern struct kmem_cache *ceph_cap_cachep;
262 extern struct kmem_cache *ceph_cap_flush_cachep;
263 extern struct kmem_cache *ceph_dentry_cachep;
264 extern struct kmem_cache *ceph_file_cachep;
265 extern struct kmem_cache *ceph_dir_file_cachep;
/Linux-v4.19/fs/btrfs/
Ddelayed-ref.h190 extern struct kmem_cache *btrfs_delayed_ref_head_cachep;
191 extern struct kmem_cache *btrfs_delayed_tree_ref_cachep;
192 extern struct kmem_cache *btrfs_delayed_data_ref_cachep;
193 extern struct kmem_cache *btrfs_delayed_extent_op_cachep;

12345678910>>...18