Home
last modified time | relevance | path

Searched refs:cachep (Results 1 – 13 of 13) sorted by relevance

/linux/tools/testing/shared/
H A Dlinux.c19 void kmem_cache_set_callback(struct kmem_cache *cachep, void (*callback)(void *)) in kmem_cache_set_callback() argument
21 cachep->callback = callback; in kmem_cache_set_callback()
24 void kmem_cache_set_private(struct kmem_cache *cachep, void *private) in kmem_cache_set_private() argument
26 cachep->private = private; in kmem_cache_set_private()
29 void kmem_cache_set_non_kernel(struct kmem_cache *cachep, unsigned int val) in kmem_cache_set_non_kernel() argument
31 cachep->non_kernel = val; in kmem_cache_set_non_kernel()
34 unsigned long kmem_cache_get_alloc(struct kmem_cache *cachep) in kmem_cache_get_alloc() argument
36 return cachep->size * cachep->nr_allocated; in kmem_cache_get_alloc()
39 unsigned long kmem_cache_nr_allocated(struct kmem_cache *cachep) in kmem_cache_nr_allocated() argument
41 return cachep->nr_allocated; in kmem_cache_nr_allocated()
[all …]
/linux/tools/include/linux/
H A Dslab.h145 void *kmem_cache_alloc_lru(struct kmem_cache *cachep, struct list_lru *, int flags);
146 static inline void *kmem_cache_alloc(struct kmem_cache *cachep, int flags) in kmem_cache_alloc() argument
148 return kmem_cache_alloc_lru(cachep, NULL, flags); in kmem_cache_alloc()
150 void kmem_cache_free(struct kmem_cache *cachep, void *objp);
185 void kmem_cache_free_bulk(struct kmem_cache *cachep, size_t size, void **list);
186 int kmem_cache_alloc_bulk(struct kmem_cache *cachep, gfp_t gfp, size_t size,
/linux/drivers/scsi/snic/
H A Dsnic_main.c818 struct kmem_cache *cachep; in snic_global_data_init() local
851 cachep = kmem_cache_create("snic_req_dfltsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
853 if (!cachep) { in snic_global_data_init()
859 snic_glob->req_cache[SNIC_REQ_CACHE_DFLT_SGL] = cachep; in snic_global_data_init()
864 cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
866 if (!cachep) { in snic_global_data_init()
872 snic_glob->req_cache[SNIC_REQ_CACHE_MAX_SGL] = cachep; in snic_global_data_init()
875 cachep = kmem_cache_create("snic_req_tm", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init()
877 if (!cachep) { in snic_global_data_init()
883 snic_glob->req_cache[SNIC_REQ_TM_CACHE] = cachep; in snic_global_data_init()
/linux/mm/
H A Dslab.h663 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count,
665 void cache_random_seq_destroy(struct kmem_cache *cachep);
667 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create() argument
672 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy() argument
H A Dslab_common.c602 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument
604 kasan_cache_shrink(cachep); in kmem_cache_shrink()
606 return __kmem_cache_shrink(cachep); in kmem_cache_shrink()
1057 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument
1061 if (count < 2 || cachep->random_seq) in cache_random_seq_create()
1064 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create()
1065 if (!cachep->random_seq) in cache_random_seq_create()
1068 freelist_randomize(cachep->random_seq, count); in cache_random_seq_create()
1073 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument
1075 kfree(cachep->random_seq); in cache_random_seq_destroy()
[all …]
H A Dslub.c6247 struct kmem_cache *cachep; in warn_free_bad_obj() local
6256 cachep = slab->slab_cache; in warn_free_bad_obj()
6258 if (WARN_ONCE(cachep != s, in warn_free_bad_obj()
6260 s->name, obj, cachep ? cachep->name : "(NULL)")) { in warn_free_bad_obj()
6261 if (cachep) in warn_free_bad_obj()
6262 print_tracking(cachep, obj); in warn_free_bad_obj()
/linux/include/net/
H A Dinet_hashtables.h218 inet_bind_bucket_create(struct kmem_cache *cachep, struct net *net,
228 inet_bind2_bucket_create(struct kmem_cache *cachep, struct net *net,
233 void inet_bind2_bucket_destroy(struct kmem_cache *cachep,
/linux/net/ipv4/
H A Dinet_hashtables.c73 struct inet_bind_bucket *inet_bind_bucket_create(struct kmem_cache *cachep, in inet_bind_bucket_create() argument
79 struct inet_bind_bucket *tb = kmem_cache_alloc(cachep, GFP_ATOMIC); in inet_bind_bucket_create()
151 struct inet_bind2_bucket *inet_bind2_bucket_create(struct kmem_cache *cachep, in inet_bind2_bucket_create() argument
157 struct inet_bind2_bucket *tb2 = kmem_cache_alloc(cachep, GFP_ATOMIC); in inet_bind2_bucket_create()
166 void inet_bind2_bucket_destroy(struct kmem_cache *cachep, struct inet_bind2_bucket *tb) in inet_bind2_bucket_destroy() argument
173 kmem_cache_free(cachep, tb); in inet_bind2_bucket_destroy()
/linux/Documentation/RCU/
H A Drculist_nulls.rst133 kmem_cache_free(cachep, obj);
207 obj = kmem_cache_alloc(cachep);
/linux/include/linux/
H A Dslab.h766 void *kmem_cache_alloc_noprof(struct kmem_cache *cachep,
839 void *kmem_cache_alloc_from_sheaf_noprof(struct kmem_cache *cachep, gfp_t gfp,
/linux/fs/ext4/
H A Dmballoc.c3384 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache() local
3386 BUG_ON(!cachep); in get_groupinfo_cache()
3387 return cachep; in get_groupinfo_cache()
3435 struct kmem_cache *cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_add_groupinfo() local
3459 meta_group_info[i] = kmem_cache_zalloc(cachep, GFP_NOFS); in ext4_mb_add_groupinfo()
3512 struct kmem_cache *cachep; in ext4_mb_init_backend() local
3574 cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_init_backend()
3579 kmem_cache_free(cachep, grp); in ext4_mb_init_backend()
3609 struct kmem_cache *cachep; in ext4_groupinfo_create_slab() local
3626 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab()
[all …]
/linux/fs/f2fs/
H A Df2fs.h3103 static inline void *f2fs_kmem_cache_alloc_nofail(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc_nofail() argument
3108 entry = kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc_nofail()
3110 entry = kmem_cache_alloc(cachep, flags | __GFP_NOFAIL); in f2fs_kmem_cache_alloc_nofail()
3114 static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc() argument
3118 return f2fs_kmem_cache_alloc_nofail(cachep, flags); in f2fs_kmem_cache_alloc()
3123 return kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc()
/linux/lib/
H A Dmaple_tree.c6565 extern void kmem_cache_set_callback(struct kmem_cache *cachep,
6572 extern void kmem_cache_set_private(struct kmem_cache *cachep, void *private);