Home
last modified time | relevance | path

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

12345678910>>...23

/linux/mm/
A Dslab.h20 struct kmem_cache { struct
75 extern struct kmem_cache *kmem_cache;
108 struct kmem_cache *
115 static inline struct kmem_cache *
334 struct kmem_cache *s; in memcg_slab_free_hook()
420 struct kmem_cache *s, in account_slab_page()
431 struct kmem_cache *s) in unaccount_slab_page()
440 static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x) in cache_from_obj()
442 struct kmem_cache *cachep; in cache_from_obj()
486 static inline struct kmem_cache *slab_pre_alloc_hook(struct kmem_cache *s, in slab_pre_alloc_hook()
[all …]
A Dslub.c1831 struct kmem_cache *s; in init_freelist_randomization()
2659 struct kmem_cache *s;
2670 struct kmem_cache *s; in flush_cpu_slab()
2738 struct kmem_cache *s; in slub_cpu_dead()
3539 struct kmem_cache *s;
4408 struct kmem_cache *s; in __kmalloc()
4449 struct kmem_cache *s; in __kmalloc_node()
4490 struct kmem_cache *s; in __check_heap_object()
4645 struct kmem_cache *s; in slab_mem_going_offline_callback()
4777 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in bootstrap()
[all …]
A Dslab.c871 struct kmem_cache *cachep; in init_cache_node_node()
953 struct kmem_cache *cachep; in cpuup_canceled()
1019 struct kmem_cache *cachep; in cpuup_prepare()
1108 struct kmem_cache *cachep; in drain_cache_node_node()
1286 struct kmem_cache *cachep; in kmem_cache_init_late()
1414 struct kmem_cache *cachep; in kmem_rcu_free()
1799 struct kmem_cache *
1803 struct kmem_cache *cachep; in __kmem_cache_alias()
3748 struct kmem_cache *s; in kmem_cache_free_bulk()
3785 struct kmem_cache *c; in kfree()
[all …]
A Dslab_common.c38 struct kmem_cache *kmem_cache; variable
189 struct kmem_cache *s; in find_mergeable()
239 struct kmem_cache *s; in create_cache()
301 struct kmem_cache *
308 struct kmem_cache *s = NULL; in kmem_cache_create_usercopy()
410 struct kmem_cache *
422 struct kmem_cache *s, *s2; in slab_caches_to_rcu_destroy_workfn()
667 struct kmem_cache *s = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT); in create_kmalloc_cache()
679 struct kmem_cache *
1084 struct kmem_cache *s = list_entry(p, struct kmem_cache, list); in slab_show()
[all …]
A Dslob.c591 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()
666 void kmem_cache_free(struct kmem_cache *c, void *b) in kmem_cache_free()
681 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p) in kmem_cache_free_bulk()
694 int __kmem_cache_shutdown(struct kmem_cache *c) in __kmem_cache_shutdown()
700 void __kmem_cache_release(struct kmem_cache *c) in __kmem_cache_release()
704 int __kmem_cache_shrink(struct kmem_cache *d) in __kmem_cache_shrink()
709 struct kmem_cache kmem_cache_boot = {
711 .size = sizeof(struct kmem_cache),
[all …]
/linux/include/linux/
A Dkasan.h10 struct kmem_cache;
181 void __kasan_cache_create_kmalloc(struct kmem_cache *cache);
188 size_t __kasan_metadata_size(struct kmem_cache *cache);
222 struct kmem_cache *cache, const void *object) in kasan_init_slab_obj()
229 bool __kasan_slab_free(struct kmem_cache *s, void *object,
231 static __always_inline bool kasan_slab_free(struct kmem_cache *s, in kasan_slab_free()
253 void * __must_check __kasan_slab_alloc(struct kmem_cache *s,
256 struct kmem_cache *s, void *object, gfp_t flags, bool init) in kasan_slab_alloc()
320 static inline void kasan_cache_create(struct kmem_cache *cache, in kasan_cache_create()
375 void kasan_cache_shrink(struct kmem_cache *cache);
[all …]
A Dslub_def.h90 struct kmem_cache { struct
148 void sysfs_slab_unlink(struct kmem_cache *); argument
149 void sysfs_slab_release(struct kmem_cache *);
151 static inline void sysfs_slab_unlink(struct kmem_cache *s) in sysfs_slab_unlink()
154 static inline void sysfs_slab_release(struct kmem_cache *s) in sysfs_slab_release()
159 void object_err(struct kmem_cache *s, struct page *page,
162 void *fixup_red_left(struct kmem_cache *s, void *p);
164 static inline void *nearest_obj(struct kmem_cache *cache, struct page *page, in nearest_obj()
176 static inline unsigned int __obj_to_index(const struct kmem_cache *cache, in __obj_to_index()
183 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
[all …]
A Dslab.h145 struct kmem_cache *kmem_cache_create(const char *name, unsigned int size,
148 struct kmem_cache *kmem_cache_create_usercopy(const char *name,
153 void kmem_cache_destroy(struct kmem_cache *s);
154 int kmem_cache_shrink(struct kmem_cache *s);
329 extern struct kmem_cache *
428 void kmem_cache_free(struct kmem_cache *s, void *objp);
437 void kmem_cache_free_bulk(struct kmem_cache *s, size_t size, void **p);
467 extern void *kmem_cache_alloc_trace(struct kmem_cache *s, gfp_t flags, size_t size)
471 extern void *kmem_cache_alloc_node_trace(struct kmem_cache *s, gfp_t gfpflags,
712 static inline void *kmem_cache_zalloc(struct kmem_cache *k, gfp_t flags) in kmem_cache_zalloc()
[all …]
A Dkfence.h91 void kfence_shutdown_cache(struct kmem_cache *s);
97 void *__kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags);
115 static __always_inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) in kfence_alloc()
210 static inline void kfence_shutdown_cache(struct kmem_cache *s) { } in kfence_shutdown_cache()
211 static inline void *kfence_alloc(struct kmem_cache *s, size_t size, gfp_t flags) { return NULL; } in kfence_alloc()
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()
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()
/linux/mm/kasan/
A Dcommon.c140 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()
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()
371 bool __kasan_slab_free(struct kmem_cache *cache, void *object, in __kasan_slab_free()
423 static void set_alloc_info(struct kmem_cache *cache, void *object, in set_alloc_info()
437 void * __must_check __kasan_slab_alloc(struct kmem_cache *cache, in __kasan_slab_alloc()
[all …]
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()
312 void kasan_quarantine_remove_cache(struct kmem_cache *cache) in kasan_quarantine_remove_cache()
/linux/fs/jffs2/
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;
/linux/fs/gfs2/
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;
/linux/drivers/target/
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;
/linux/tools/testing/radix-tree/
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()
/linux/fs/ntfs/
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;
/linux/lib/
A Dslub_kunit.c14 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/drivers/target/iscsi/
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;
/linux/fs/xfs/
A Dxfs_extfree_item.h12 struct kmem_cache;
72 extern struct kmem_cache *xfs_efi_cache;
73 extern struct kmem_cache *xfs_efd_cache;
A Dxfs_bmap_item.h28 struct kmem_cache;
68 extern struct kmem_cache *xfs_bui_cache;
69 extern struct kmem_cache *xfs_bud_cache;
A Dxfs_refcount_item.h28 struct kmem_cache;
71 extern struct kmem_cache *xfs_cui_cache;
72 extern struct kmem_cache *xfs_cud_cache;
A Dxfs_rmap_item.h31 struct kmem_cache;
71 extern struct kmem_cache *xfs_rui_cache;
72 extern struct kmem_cache *xfs_rud_cache;
/linux/tools/testing/radix-tree/linux/
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,

Completed in 78 milliseconds

12345678910>>...23