Home
last modified time | relevance | path

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

/mm/
Dslab.h19 struct kmem_cache { struct
67 extern struct kmem_cache *kmem_cache;
77 struct kmem_cache *kmalloc_slab(size_t, gfp_t);
82 extern int __kmem_cache_create(struct kmem_cache *, unsigned long flags);
84 extern struct kmem_cache *create_kmalloc_cache(const char *name, size_t size,
86 extern void create_boot_cache(struct kmem_cache *, const char *name,
91 int slab_unmergeable(struct kmem_cache *s);
92 struct kmem_cache *find_mergeable(size_t size, size_t align,
95 struct kmem_cache *
103 static inline struct kmem_cache *
[all …]
Dslub.c117 static inline int kmem_cache_debug(struct kmem_cache *s) in kmem_cache_debug()
126 static inline void *fixup_red_left(struct kmem_cache *s, void *p) in fixup_red_left()
134 static inline bool kmem_cache_has_cpu_partial(struct kmem_cache *s) in kmem_cache_has_cpu_partial()
209 static int sysfs_slab_add(struct kmem_cache *);
210 static int sysfs_slab_alias(struct kmem_cache *, const char *);
211 static void memcg_propagate_slab_attrs(struct kmem_cache *s);
213 static inline int sysfs_slab_add(struct kmem_cache *s) { return 0; } in sysfs_slab_add()
214 static inline int sysfs_slab_alias(struct kmem_cache *s, const char *p) in sysfs_slab_alias()
216 static inline void memcg_propagate_slab_attrs(struct kmem_cache *s) { } in memcg_propagate_slab_attrs()
219 static inline void stat(const struct kmem_cache *s, enum stat_item si) in stat()
[all …]
Dslab_common.c31 struct kmem_cache *kmem_cache; variable
64 unsigned int kmem_cache_size(struct kmem_cache *s) in kmem_cache_size()
73 struct kmem_cache *s = NULL; in kmem_cache_sanity_check()
110 struct kmem_cache *s, struct kmem_cache *root_cache) in memcg_alloc_cache_params()
136 static void memcg_free_cache_params(struct kmem_cache *s) in memcg_free_cache_params()
141 static int memcg_update_cache_params(struct kmem_cache *s, int num_memcgs) in memcg_update_cache_params()
170 struct kmem_cache *s; in memcg_update_all_caches()
194 struct kmem_cache *s, struct kmem_cache *root_cache) in memcg_alloc_cache_params()
199 static inline void memcg_free_cache_params(struct kmem_cache *s) in memcg_free_cache_params()
207 int slab_unmergeable(struct kmem_cache *s) in slab_unmergeable()
[all …]
Dslab.c245 static int drain_freelist(struct kmem_cache *cache,
247 static void free_block(struct kmem_cache *cachep, void **objpp, int len,
249 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list);
250 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp);
354 static int obj_offset(struct kmem_cache *cachep) in obj_offset()
359 static unsigned long long *dbg_redzone1(struct kmem_cache *cachep, void *objp) in dbg_redzone1()
366 static unsigned long long *dbg_redzone2(struct kmem_cache *cachep, void *objp) in dbg_redzone2()
377 static void **dbg_userword(struct kmem_cache *cachep, void *objp) in dbg_userword()
401 struct kmem_cache *cachep = page->slab_cache; in set_obj_status()
412 struct kmem_cache *cachep = page->slab_cache; in get_obj_status()
[all …]
Dslob.c525 int __kmem_cache_create(struct kmem_cache *c, unsigned long flags) in __kmem_cache_create()
535 void *slob_alloc_node(struct kmem_cache *c, gfp_t flags, int node) in slob_alloc_node()
563 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc()
576 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t gfp, int node) in kmem_cache_alloc_node()
599 void kmem_cache_free(struct kmem_cache *c, void *b) in kmem_cache_free()
615 int __kmem_cache_shutdown(struct kmem_cache *c) in __kmem_cache_shutdown()
621 int __kmem_cache_shrink(struct kmem_cache *d) in __kmem_cache_shrink()
626 struct kmem_cache kmem_cache_boot = {
628 .size = sizeof(struct kmem_cache),
635 kmem_cache = &kmem_cache_boot; in kmem_cache_init()
Dkmemcheck.c60 void kmemcheck_slab_alloc(struct kmem_cache *s, gfp_t gfpflags, void *object, in kmemcheck_slab_alloc()
93 void kmemcheck_slab_free(struct kmem_cache *s, void *object, size_t size) in kmemcheck_slab_free()
Dmemcontrol.c2778 static struct kmem_cache *memcg_params_to_cache(struct memcg_cache_params *p) in memcg_params_to_cache()
2780 struct kmem_cache *cachep; in memcg_params_to_cache()
2927 struct kmem_cache *root_cache) in memcg_register_cache()
2931 struct kmem_cache *cachep; in memcg_register_cache()
2970 static void memcg_unregister_cache(struct kmem_cache *cachep) in memcg_unregister_cache()
2972 struct kmem_cache *root_cache; in memcg_unregister_cache()
3026 int __memcg_cleanup_cache_params(struct kmem_cache *s) in __memcg_cleanup_cache_params()
3028 struct kmem_cache *c; in __memcg_cleanup_cache_params()
3048 struct kmem_cache *cachep; in memcg_unregister_all_caches()
3066 struct kmem_cache *cachep;
[all …]
Dmempool.c334 struct kmem_cache *mem = pool_data; in mempool_alloc_slab()
341 struct kmem_cache *mem = pool_data; in mempool_free_slab()
Dksm.c204 static struct kmem_cache *rmap_item_cache;
205 static struct kmem_cache *stable_node_cache;
206 static struct kmem_cache *mm_slot_cache;
Drmap.c65 static struct kmem_cache *anon_vma_cachep;
66 static struct kmem_cache *anon_vma_chain_cachep;
Dkmemleak.c191 static struct kmem_cache *object_cache;
192 static struct kmem_cache *scan_area_cache;
Dzswap.c207 static struct kmem_cache *zswap_entry_cache;
Dmempolicy.c108 static struct kmem_cache *policy_cache;
109 static struct kmem_cache *sn_cache;
Dzsmalloc.c253 struct kmem_cache *handle_cachep;
Dnommu.c95 static struct kmem_cache *vm_region_jar;
Dhuge_memory.c74 static struct kmem_cache *mm_slot_cache __read_mostly;
Dshmem.c3066 static struct kmem_cache *shmem_inode_cachep;
Dmemory.c3773 static struct kmem_cache *page_ptl_cachep;