• Home
  • Raw
  • Download

Lines Matching refs:kmem_cache

208 static int drain_freelist(struct kmem_cache *cache,
210 static void free_block(struct kmem_cache *cachep, void **objpp, int len,
212 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list);
213 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp);
216 static inline void fixup_objfreelist_debug(struct kmem_cache *cachep,
218 static inline void fixup_slab_list(struct kmem_cache *cachep,
325 static int obj_offset(struct kmem_cache *cachep) in obj_offset()
330 static unsigned long long *dbg_redzone1(struct kmem_cache *cachep, void *objp) in dbg_redzone1()
337 static unsigned long long *dbg_redzone2(struct kmem_cache *cachep, void *objp) in dbg_redzone2()
348 static void **dbg_userword(struct kmem_cache *cachep, void *objp) in dbg_userword()
365 static inline bool is_store_user_clean(struct kmem_cache *cachep) in is_store_user_clean()
370 static inline void set_store_user_clean(struct kmem_cache *cachep) in set_store_user_clean()
375 static inline void set_store_user_dirty(struct kmem_cache *cachep) in set_store_user_dirty()
382 static inline void set_store_user_dirty(struct kmem_cache *cachep) {} in set_store_user_dirty()
395 static inline struct kmem_cache *virt_to_cache(const void *obj) in virt_to_cache()
401 static inline void *index_to_obj(struct kmem_cache *cache, struct page *page, in index_to_obj()
413 static inline unsigned int obj_to_index(const struct kmem_cache *cache, in obj_to_index()
422 static struct kmem_cache kmem_cache_boot = {
426 .size = sizeof(struct kmem_cache),
432 static inline struct array_cache *cpu_cache_get(struct kmem_cache *cachep) in cpu_cache_get()
478 static void __slab_error(const char *function, struct kmem_cache *cachep, in __slab_error()
596 static noinline void cache_free_pfmemalloc(struct kmem_cache *cachep, in cache_free_pfmemalloc()
651 static inline int cache_free_alien(struct kmem_cache *cachep, void *objp) in cache_free_alien()
656 static inline void *alternate_node_alloc(struct kmem_cache *cachep, in alternate_node_alloc()
662 static inline void *____cache_alloc_node(struct kmem_cache *cachep, in ____cache_alloc_node()
675 static void *____cache_alloc_node(struct kmem_cache *, gfp_t, int);
676 static void *alternate_node_alloc(struct kmem_cache *, gfp_t);
727 static void __drain_alien_cache(struct kmem_cache *cachep, in __drain_alien_cache()
752 static void reap_alien(struct kmem_cache *cachep, struct kmem_cache_node *n) in reap_alien()
773 static void drain_alien_cache(struct kmem_cache *cachep, in drain_alien_cache()
795 static int __cache_free_alien(struct kmem_cache *cachep, void *objp, in __cache_free_alien()
826 static inline int cache_free_alien(struct kmem_cache *cachep, void *objp) in cache_free_alien()
850 static int init_cache_node(struct kmem_cache *cachep, int node, gfp_t gfp) in init_cache_node()
903 struct kmem_cache *cachep; in init_cache_node_node()
915 static int setup_kmem_cache_node(struct kmem_cache *cachep, in setup_kmem_cache_node()
985 struct kmem_cache *cachep; in cpuup_canceled()
1053 struct kmem_cache *cachep; in cpuup_prepare()
1142 struct kmem_cache *cachep; in drain_cache_node_node()
1199 static void __init init_list(struct kmem_cache *cachep, struct kmem_cache_node *list, in init_list()
1221 static void __init set_up_node(struct kmem_cache *cachep, int index) in set_up_node()
1243 kmem_cache = &kmem_cache_boot; in kmem_cache_init()
1284 create_boot_cache(kmem_cache, "kmem_cache", in kmem_cache_init()
1285 offsetof(struct kmem_cache, node) + in kmem_cache_init()
1288 list_add(&kmem_cache->list, &slab_caches); in kmem_cache_init()
1307 init_list(kmem_cache, &init_kmem_cache_node[CACHE_CACHE + nid], nid); in kmem_cache_init()
1319 struct kmem_cache *cachep; in kmem_cache_init_late()
1365 slab_out_of_memory(struct kmem_cache *cachep, gfp_t gfpflags, int nodeid) in slab_out_of_memory()
1422 static struct page *kmem_getpages(struct kmem_cache *cachep, gfp_t flags, in kmem_getpages()
1471 static void kmem_freepages(struct kmem_cache *cachep, struct page *page) in kmem_freepages()
1499 struct kmem_cache *cachep; in kmem_rcu_free()
1509 static bool is_debug_pagealloc_cache(struct kmem_cache *cachep) in is_debug_pagealloc_cache()
1519 static void store_stackinfo(struct kmem_cache *cachep, unsigned long *addr, in store_stackinfo()
1551 static void slab_kernel_map(struct kmem_cache *cachep, void *objp, in slab_kernel_map()
1564 static inline void slab_kernel_map(struct kmem_cache *cachep, void *objp, in slab_kernel_map()
1569 static void poison_obj(struct kmem_cache *cachep, void *addr, unsigned char val) in poison_obj()
1610 static void print_objinfo(struct kmem_cache *cachep, void *objp, int lines) in print_objinfo()
1637 static void check_poison_obj(struct kmem_cache *cachep, void *objp) in check_poison_obj()
1701 static void slab_destroy_debugcheck(struct kmem_cache *cachep, in slab_destroy_debugcheck()
1727 static void slab_destroy_debugcheck(struct kmem_cache *cachep, in slab_destroy_debugcheck()
1742 static void slab_destroy(struct kmem_cache *cachep, struct page *page) in slab_destroy()
1761 static void slabs_destroy(struct kmem_cache *cachep, struct list_head *list) in slabs_destroy()
1783 static size_t calculate_slab_order(struct kmem_cache *cachep, in calculate_slab_order()
1802 struct kmem_cache *freelist_cache; in calculate_slab_order()
1852 struct kmem_cache *cachep, int entries, int batchcount) in alloc_kmem_cache_cpus()
1872 static int __ref setup_cpu_cache(struct kmem_cache *cachep, gfp_t gfp) in setup_cpu_cache()
1883 set_up_node(kmem_cache, CACHE_CACHE); in setup_cpu_cache()
1918 struct kmem_cache *
1922 struct kmem_cache *cachep; in __kmem_cache_alias()
1937 static bool set_objfreelist_slab_cache(struct kmem_cache *cachep, in set_objfreelist_slab_cache()
1960 static bool set_off_slab_cache(struct kmem_cache *cachep, in set_off_slab_cache()
1994 static bool set_on_slab_cache(struct kmem_cache *cachep, in set_on_slab_cache()
2032 __kmem_cache_create (struct kmem_cache *cachep, unsigned long flags) in __kmem_cache_create()
2216 static void check_spinlock_acquired(struct kmem_cache *cachep) in check_spinlock_acquired()
2224 static void check_spinlock_acquired_node(struct kmem_cache *cachep, int node) in check_spinlock_acquired_node()
2240 static void drain_array_locked(struct kmem_cache *cachep, struct array_cache *ac, in drain_array_locked()
2259 struct kmem_cache *cachep = arg; in do_drain()
2275 static void drain_cpu_caches(struct kmem_cache *cachep) in drain_cpu_caches()
2302 static int drain_freelist(struct kmem_cache *cache, in drain_freelist()
2335 int __kmem_cache_shrink(struct kmem_cache *cachep) in __kmem_cache_shrink()
2353 int __kmem_cache_shutdown(struct kmem_cache *cachep) in __kmem_cache_shutdown()
2358 void __kmem_cache_release(struct kmem_cache *cachep) in __kmem_cache_release()
2390 static void *alloc_slabmgmt(struct kmem_cache *cachep, in alloc_slabmgmt()
2428 static void cache_init_objs_debug(struct kmem_cache *cachep, struct page *page) in cache_init_objs_debug()
2487 struct kmem_cache *cachep, in freelist_state_initialize()
2528 static bool shuffle_freelist(struct kmem_cache *cachep, struct page *page) in shuffle_freelist()
2575 static inline bool shuffle_freelist(struct kmem_cache *cachep, in shuffle_freelist()
2582 static void cache_init_objs(struct kmem_cache *cachep, in cache_init_objs()
2615 static void *slab_get_obj(struct kmem_cache *cachep, struct page *page) in slab_get_obj()
2630 static void slab_put_obj(struct kmem_cache *cachep, in slab_put_obj()
2658 static void slab_map_pages(struct kmem_cache *cache, struct page *page, in slab_map_pages()
2669 static struct page *cache_grow_begin(struct kmem_cache *cachep, in cache_grow_begin()
2742 static void cache_grow_end(struct kmem_cache *cachep, struct page *page) in cache_grow_end()
2785 static inline void verify_redzone_free(struct kmem_cache *cache, void *obj) in verify_redzone_free()
2807 static void *cache_free_debugcheck(struct kmem_cache *cachep, void *objp, in cache_free_debugcheck()
2846 static inline void fixup_objfreelist_debug(struct kmem_cache *cachep, in fixup_objfreelist_debug()
2861 static inline void fixup_slab_list(struct kmem_cache *cachep, in fixup_slab_list()
2942 static noinline void *cache_alloc_pfmemalloc(struct kmem_cache *cachep, in cache_alloc_pfmemalloc()
2974 static __always_inline int alloc_block(struct kmem_cache *cachep, in alloc_block()
2994 static void *cache_alloc_refill(struct kmem_cache *cachep, gfp_t flags) in cache_alloc_refill()
3079 static inline void cache_alloc_debugcheck_before(struct kmem_cache *cachep, in cache_alloc_debugcheck_before()
3086 static void *cache_alloc_debugcheck_after(struct kmem_cache *cachep, in cache_alloc_debugcheck_after()
3125 static inline void *____cache_alloc(struct kmem_cache *cachep, gfp_t flags) in ____cache_alloc()
3167 static void *alternate_node_alloc(struct kmem_cache *cachep, gfp_t flags) in alternate_node_alloc()
3191 static void *fallback_alloc(struct kmem_cache *cache, gfp_t flags) in fallback_alloc()
3258 static void *____cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, in ____cache_alloc_node()
3306 slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, in slab_alloc_node()
3355 __do_cache_alloc(struct kmem_cache *cache, gfp_t flags) in __do_cache_alloc()
3379 __do_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in __do_cache_alloc()
3387 slab_alloc(struct kmem_cache *cachep, gfp_t flags, unsigned long caller) in slab_alloc()
3415 static void free_block(struct kmem_cache *cachep, void **objpp, in free_block()
3457 static void cache_flusharray(struct kmem_cache *cachep, struct array_cache *ac) in cache_flusharray()
3507 static inline void __cache_free(struct kmem_cache *cachep, void *objp, in __cache_free()
3517 void ___cache_free(struct kmem_cache *cachep, void *objp, in ___cache_free()
3565 void *kmem_cache_alloc(struct kmem_cache *cachep, gfp_t flags) in kmem_cache_alloc()
3578 cache_alloc_debugcheck_after_bulk(struct kmem_cache *s, gfp_t flags, in cache_alloc_debugcheck_after_bulk()
3587 int kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t size, in kmem_cache_alloc_bulk()
3629 kmem_cache_alloc_trace(struct kmem_cache *cachep, gfp_t flags, size_t size) in kmem_cache_alloc_trace()
3655 void *kmem_cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid) in kmem_cache_alloc_node()
3669 void *kmem_cache_alloc_node_trace(struct kmem_cache *cachep, in kmem_cache_alloc_node_trace()
3690 struct kmem_cache *cachep; in __do_kmalloc_node()
3725 struct kmem_cache *cachep; in __do_kmalloc()
3760 void kmem_cache_free(struct kmem_cache *cachep, void *objp) in kmem_cache_free()
3778 void kmem_cache_free_bulk(struct kmem_cache *orig_s, size_t size, void **p) in kmem_cache_free_bulk()
3780 struct kmem_cache *s; in kmem_cache_free_bulk()
3815 struct kmem_cache *c; in kfree()
3836 static int setup_kmem_cache_nodes(struct kmem_cache *cachep, gfp_t gfp) in setup_kmem_cache_nodes()
3870 static int __do_tune_cpucache(struct kmem_cache *cachep, int limit, in __do_tune_cpucache()
3911 static int do_tune_cpucache(struct kmem_cache *cachep, int limit, in do_tune_cpucache()
3915 struct kmem_cache *c; in do_tune_cpucache()
3935 static int enable_cpucache(struct kmem_cache *cachep, gfp_t gfp) in enable_cpucache()
3947 struct kmem_cache *root = memcg_root_cache(cachep); in enable_cpucache()
4011 static void drain_array(struct kmem_cache *cachep, struct kmem_cache_node *n, in drain_array()
4048 struct kmem_cache *searchp; in cache_reap()
4104 void get_slabinfo(struct kmem_cache *cachep, struct slabinfo *sinfo) in get_slabinfo()
4172 void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *cachep) in slabinfo_show_stats()
4217 struct kmem_cache *cachep; in slabinfo_write()
4287 static void handle_slab(unsigned long *n, struct kmem_cache *c, in handle_slab()
4341 struct kmem_cache *cachep = list_entry(p, struct kmem_cache, list); in leaks_show()
4454 struct kmem_cache *cachep; in __check_heap_object()