Home
last modified time | relevance | path

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

12345678910>>...21

/OK3568_Linux_fs/kernel/mm/
H A Dslab.h20 struct kmem_cache { struct
76 extern struct kmem_cache *kmem_cache;
90 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
117 int __kmem_cache_create(struct kmem_cache *, slab_flags_t flags);
119 struct kmem_cache *create_kmalloc_cache(const char *name, unsigned int size,
122 extern void create_boot_cache(struct kmem_cache *, const char *name,
126 int slab_unmergeable(struct kmem_cache *s);
127 struct kmem_cache *find_mergeable(unsigned size, unsigned align,
130 struct kmem_cache *
137 static inline struct kmem_cache *
[all …]
H A Dslub.c129 static inline bool kmem_cache_debug(struct kmem_cache *s) in kmem_cache_debug()
134 void *fixup_red_left(struct kmem_cache *s, void *p) in fixup_red_left()
142 static inline bool kmem_cache_has_cpu_partial(struct kmem_cache *s) in kmem_cache_has_cpu_partial()
207 static int sysfs_slab_add(struct kmem_cache *);
208 static int sysfs_slab_alias(struct kmem_cache *, const char *);
210 static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; } in sysfs_slab_add()
211 static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p) in sysfs_slab_alias()
216 static void debugfs_slab_add(struct kmem_cache *);
218 static inline void debugfs_slab_add(struct kmem_cache *s) { } in debugfs_slab_add()
221 static inline void stat(const struct kmem_cache *s, enum stat_item si) in stat()
[all …]
H A Dslab_common.c39 struct kmem_cache *kmem_cache; variable
84 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size()
108 void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p) in __kmem_cache_free_bulk()
120 int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr, in __kmem_cache_alloc_bulk()
166 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable()
186 struct kmem_cache *find_mergeable(unsigned int size, unsigned int align, in find_mergeable()
189 struct kmem_cache *s; in find_mergeable()
233 static struct kmem_cache *create_cache(const char *name, in create_cache()
237 struct kmem_cache *root_cache) in create_cache()
239 struct kmem_cache *s; in create_cache()
[all …]
H A Dslab.c210 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 …]
H A Dslob.c590 int __kmem_cache_create(struct kmem_cache *c, slab_flags_t flags) in __kmem_cache_create()
600 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 …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dkasan.h11 struct kmem_cache;
152 void __kasan_cache_create(struct kmem_cache *cache, unsigned int *size,
154 static __always_inline void kasan_cache_create(struct kmem_cache *cache, in kasan_cache_create()
161 void __kasan_cache_create_kmalloc(struct kmem_cache *cache);
162 static __always_inline void kasan_cache_create_kmalloc(struct kmem_cache *cache) in kasan_cache_create_kmalloc()
168 size_t __kasan_metadata_size(struct kmem_cache *cache);
169 static __always_inline size_t kasan_metadata_size(struct kmem_cache *cache) in kasan_metadata_size()
183 void __kasan_unpoison_object_data(struct kmem_cache *cache, void *object);
184 static __always_inline void kasan_unpoison_object_data(struct kmem_cache *cache, in kasan_unpoison_object_data()
191 void __kasan_poison_object_data(struct kmem_cache *cache, void *object);
[all …]
H A Dslub_def.h84 struct kmem_cache { struct
151 void sysfs_slab_unlink(struct kmem_cache *); argument
152 void sysfs_slab_release(struct kmem_cache *);
154 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink()
157 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release()
162 void object_err(struct kmem_cache *s, struct page *page,
165 void *fixup_red_left(struct kmem_cache *s, void *p);
167 static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, in nearest_obj()
179 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index()
186 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
[all …]
H A 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 *);
327 extern struct kmem_cache *
402 void *kmem_cache_alloc(struct kmem_cache *, gfp_t flags) __assume_slab_alignment __malloc;
403 void kmem_cache_free(struct kmem_cache *, void *);
412 void kmem_cache_free_bulk(struct kmem_cache *, size_t, void **);
413 int kmem_cache_alloc_bulk(struct kmem_cache *, gfp_t, size_t, void **);
426 void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node) __assume_slab_alignment __m…
[all …]
H 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()
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()
H A Dslab_def.h12 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()
H A 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()
/OK3568_Linux_fs/kernel/mm/kasan/
H A Dcommon.c137 void __kasan_cache_create(struct kmem_cache *cache, unsigned int *size, in __kasan_cache_create()
213 void __kasan_cache_create_kmalloc(struct kmem_cache *cache) in __kasan_cache_create_kmalloc()
218 size_t __kasan_metadata_size(struct kmem_cache *cache) in __kasan_metadata_size()
228 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache, in kasan_get_alloc_meta()
237 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache, in kasan_get_free_meta()
257 void __kasan_unpoison_object_data(struct kmem_cache *cache, void *object) in __kasan_unpoison_object_data()
262 void __kasan_poison_object_data(struct kmem_cache *cache, void *object) in __kasan_poison_object_data()
282 static inline u8 assign_tag(struct kmem_cache *cache, in assign_tag()
308 void * __must_check __kasan_init_slab_obj(struct kmem_cache *cache, in __kasan_init_slab_obj()
325 static inline bool ____kasan_slab_free(struct kmem_cache *cache, void *object, in ____kasan_slab_free()
[all …]
H A Dquarantine.c118 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()
319 void kasan_quarantine_remove_cache(struct kmem_cache *cache) in kasan_quarantine_remove_cache()
H A Dkasan.h193 struct kasan_alloc_meta *kasan_get_alloc_meta(struct kmem_cache *cache,
196 struct kasan_free_meta *kasan_get_free_meta(struct kmem_cache *cache,
257 void kasan_set_free_info(struct kmem_cache *cache, void *object, u8 tag);
258 struct kasan_track *kasan_get_free_track(struct kmem_cache *cache,
263 bool kasan_quarantine_put(struct kmem_cache *cache, void *object);
265 void kasan_quarantine_remove_cache(struct kmem_cache *cache);
267 static inline bool kasan_quarantine_put(struct kmem_cache *cache, void *object) { return false; } in kasan_quarantine_put()
269 static inline void kasan_quarantine_remove_cache(struct kmem_cache *cache) { } in kasan_quarantine_remove_cache()
/OK3568_Linux_fs/kernel/fs/jffs2/
H 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;
/OK3568_Linux_fs/kernel/fs/gfs2/
H 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;
H A 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;
/OK3568_Linux_fs/u-boot/lib/
H A Dlinux_compat.c28 struct kmem_cache *get_mem(int element_sz) in get_mem()
30 struct kmem_cache *ret; in get_mem()
32 ret = memalign(ARCH_DMA_MINALIGN, sizeof(struct kmem_cache)); in get_mem()
38 void *kmem_cache_alloc(struct kmem_cache *obj, int flag) in kmem_cache_alloc()
/OK3568_Linux_fs/kernel/tools/testing/radix-tree/
H A 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()
/OK3568_Linux_fs/kernel/drivers/target/
H 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;
/OK3568_Linux_fs/kernel/fs/ntfs/
H 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;
/OK3568_Linux_fs/kernel/drivers/target/iscsi/
H 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;
/OK3568_Linux_fs/kernel/include/linux/ceph/
H A 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;
/OK3568_Linux_fs/kernel/fs/ecryptfs/
H A 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 …]
/OK3568_Linux_fs/kernel/tools/testing/radix-tree/linux/
H A 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,

12345678910>>...21