Home
last modified time | relevance | path

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

12345678910>>...21

/kernel/linux/linux-5.10/mm/
Dslab.h20 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 …]
Dslub.c126 static inline bool kmem_cache_debug(struct kmem_cache *s) in kmem_cache_debug()
131 void *fixup_red_left(struct kmem_cache *s, void *p) in fixup_red_left()
139 static inline bool kmem_cache_has_cpu_partial(struct kmem_cache *s) in kmem_cache_has_cpu_partial()
220 static int sysfs_slab_add(struct kmem_cache *);
221 static int sysfs_slab_alias(struct kmem_cache *, const char *);
223 static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; } in sysfs_slab_add()
224 static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p) in sysfs_slab_alias()
228 static inline void stat(const struct kmem_cache *s, enum stat_item si) in stat()
248 static inline void *freelist_ptr(const struct kmem_cache *s, void *ptr, in freelist_ptr()
270 static inline void *freelist_dereference(const struct kmem_cache *s, in freelist_dereference()
[all …]
Dslab_common.c36 struct kmem_cache *kmem_cache; variable
81 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size()
105 void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p) in __kmem_cache_free_bulk()
117 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr, in __kmem_cache_alloc_bulk()
164 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable()
184 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align, in find_mergeable()
187 struct kmem_cache *s; in find_mergeable()
231 static struct kmem_cache *create_cache(const char *name, in create_cache()
235 struct kmem_cache *root_cache) in create_cache()
237 struct kmem_cache *s; in create_cache()
[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.c584 int __kmem_cache_create(struct kmem_cache *c, slab_flags_t flags) in __kmem_cache_create()
594 static void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node) in slob_alloc_node()
624 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc()
637 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node()
660 void kmem_cache_free(struct kmem_cache *c, void *b) in kmem_cache_free()
676 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p) in kmem_cache_free_bulk()
682 int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, in kmem_cache_alloc_bulk()
689 int __kmem_cache_shutdown(struct kmem_cache *c) in __kmem_cache_shutdown()
695 void __kmem_cache_release(struct kmem_cache *c) in __kmem_cache_release()
699 int __kmem_cache_shrink(struct kmem_cache *d) in __kmem_cache_shrink()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dkasan.h7 struct kmem_cache;
51 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size,
55 void kasan_unpoison_object_data(struct kmem_cache *cache, void *object);
56 void kasan_poison_object_data(struct kmem_cache *cache, void *object);
57 void * __must_check kasan_init_slab_obj(struct kmem_cache *cache,
64 void * __must_check kasan_kmalloc(struct kmem_cache *s, const void *object,
69 void * __must_check kasan_slab_alloc(struct kmem_cache *s, void *object,
71 bool kasan_slab_free(struct kmem_cache *s, void *object, unsigned long ip);
99 size_t kasan_metadata_size(struct kmem_cache *cache);
116 static inline void kasan_cache_create(struct kmem_cache *cache, in kasan_cache_create()
[all …]
Dslub_def.h83 struct kmem_cache { struct
150 void sysfs_slab_unlink(struct kmem_cache *); argument
151 void sysfs_slab_release(struct kmem_cache *);
153 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink()
156 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release()
161 void object_err(struct kmem_cache *s, struct page *page,
164 void *fixup_red_left(struct kmem_cache *s, void *p);
166 static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, 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()
[all …]
Dslab.h147 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 *);
315 extern struct kmem_cache *
390 void *kmem_cache_alloc(struct kmem_cache *, gfp_t flags) __assume_slab_alignment __malloc;
391 void kmem_cache_free(struct kmem_cache *, void *);
400 void kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
401 int kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
414 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node) __assume_slab_alignment __m…
[all …]
Dslab_def.h11 struct kmem_cache { struct
35 struct kmem_cache *freelist_cache; argument
89 static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, 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_page(const struct kmem_cache *cache, in objs_per_slab_page()
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()
Dmempool.h11 struct kmem_cache;
60 mempool_init_slab_pool(mempool_t *pool, int min_nr, struct kmem_cache *kc) in mempool_init_slab_pool()
67 mempool_create_slab_pool(int min_nr, struct kmem_cache *kc) in mempool_create_slab_pool()
Dkvm_types.h74 struct kmem_cache *kmem_cache; member
/kernel/linux/linux-5.10/mm/kasan/
Dquarantine.c128 static struct kmem_cache *qlink_to_cache(struct qlist_node *qlink) in qlink_to_cache()
133 static void *qlink_to_object(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_to_object()
142 static void qlink_free(struct qlist_node *qlink, struct kmem_cache *cache) in qlink_free()
157 static void qlist_free_all(struct qlist_head *q, struct kmem_cache *cache) in qlist_free_all()
166 struct kmem_cache *obj_cache = in qlist_free_all()
176 void quarantine_put(struct kasan_free_meta *info, struct kmem_cache *cache) in quarantine_put()
273 struct kmem_cache *cache) in qlist_move_cache()
284 struct kmem_cache *obj_cache = qlink_to_cache(curr); in qlist_move_cache()
297 struct kmem_cache *cache = arg; in per_cpu_remove_cache()
314 void quarantine_remove_cache(struct kmem_cache *cache) in quarantine_remove_cache()
Dkasan.h137 struct kasan_alloc_meta *get_alloc_info(struct kmem_cache *cache,
139 struct kasan_free_meta *get_free_info(struct kmem_cache *cache,
177 void kasan_set_free_info(struct kmem_cache *cache, void *object, u8 tag);
178 struct kasan_track *kasan_get_free_track(struct kmem_cache *cache,
183 void quarantine_put(struct kasan_free_meta *info, struct kmem_cache *cache);
185 void quarantine_remove_cache(struct kmem_cache *cache);
188 struct kmem_cache *cache) { } in quarantine_put()
190 static inline void quarantine_remove_cache(struct kmem_cache *cache) { } in quarantine_remove_cache()
Dcommon.c224 void kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in kasan_cache_create()
265 size_t kasan_metadata_size(struct kmem_cache *cache) in kasan_metadata_size()
273 struct kasan_alloc_meta *get_alloc_info(struct kmem_cache *cache, in get_alloc_info()
279 struct kasan_free_meta *get_free_info(struct kmem_cache *cache, in get_free_info()
296 void kasan_unpoison_object_data(struct kmem_cache *cache, void *object) in kasan_unpoison_object_data()
301 void kasan_poison_object_data(struct kmem_cache *cache, void *object) in kasan_poison_object_data()
322 static u8 assign_tag(struct kmem_cache *cache, const void *object, in assign_tag()
354 void * __must_check kasan_init_slab_obj(struct kmem_cache *cache, in kasan_init_slab_obj()
387 static bool __kasan_slab_free(struct kmem_cache *cache, void *object, in __kasan_slab_free()
429 bool kasan_slab_free(struct kmem_cache *cache, void *object, unsigned long ip) in kasan_slab_free()
[all …]
/kernel/linux/linux-5.10/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;
/kernel/linux/linux-5.10/fs/gfs2/
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;
Dutil.c28 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;
/kernel/linux/linux-5.10/drivers/target/iscsi/
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;
/kernel/linux/linux-5.10/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;
/kernel/linux/linux-5.10/tools/testing/radix-tree/
Dlinux.c20 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()
/kernel/linux/linux-5.10/fs/ntfs/
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;
/kernel/linux/linux-5.10/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 *kmem_cache_create(const char *name, unsigned int size,
/kernel/linux/linux-5.10/include/linux/ceph/
Dlibceph.h278 extern struct kmem_cache *ceph_inode_cachep;
279 extern struct kmem_cache *ceph_cap_cachep;
280 extern struct kmem_cache *ceph_cap_flush_cachep;
281 extern struct kmem_cache *ceph_dentry_cachep;
282 extern struct kmem_cache *ceph_file_cachep;
283 extern struct kmem_cache *ceph_dir_file_cachep;
284 extern struct kmem_cache *ceph_mds_request_cachep;
/kernel/linux/linux-5.10/fs/ecryptfs/
Decryptfs_kernel.h548 extern struct kmem_cache *ecryptfs_auth_tok_list_item_cache;
549 extern struct kmem_cache *ecryptfs_file_info_cache;
550 extern struct kmem_cache *ecryptfs_dentry_info_cache;
551 extern struct kmem_cache *ecryptfs_inode_info_cache;
552 extern struct kmem_cache *ecryptfs_sb_info_cache;
553 extern struct kmem_cache *ecryptfs_header_cache;
554 extern struct kmem_cache *ecryptfs_xattr_cache;
555 extern struct kmem_cache *ecryptfs_key_record_cache;
556 extern struct kmem_cache *ecryptfs_key_sig_cache;
557 extern struct kmem_cache *ecryptfs_global_auth_tok_cache;
[all …]

12345678910>>...21