| /linux/tools/testing/shared/ |
| H A D | linux.c | 19 void kmem_cache_set_callback(struct kmem_cache *cachep, void (*callback)(void *)) 21 cachep->callback = callback; 24 void kmem_cache_set_private(struct kmem_cache *cachep, void *private) 26 cachep->private = private; 29 void kmem_cache_set_non_kernel(struct kmem_cache *cachep, unsigned int val) 31 cachep->non_kernel = val; 34 unsigned long kmem_cache_get_alloc(struct kmem_cache *cachep) in kmem_cache_set_callback() argument 36 return cachep->size * cachep->nr_allocated; in kmem_cache_set_callback() 39 unsigned long kmem_cache_nr_allocated(struct kmem_cache *cachep) in kmem_cache_set_private() argument 44 kmem_cache_set_non_kernel(struct kmem_cache * cachep,unsigned int val) kmem_cache_set_non_kernel() argument 49 kmem_cache_get_alloc(struct kmem_cache * cachep) kmem_cache_get_alloc() argument 54 kmem_cache_nr_allocated(struct kmem_cache * cachep) kmem_cache_nr_allocated() argument 59 kmem_cache_nr_tallocated(struct kmem_cache * cachep) kmem_cache_nr_tallocated() argument 64 kmem_cache_zero_nr_tallocated(struct kmem_cache * cachep) kmem_cache_zero_nr_tallocated() argument 69 kmem_cache_alloc_lru(struct kmem_cache * cachep,struct list_lru * lru,int gfp) kmem_cache_alloc_lru() argument 120 __kmem_cache_free_locked(struct kmem_cache * cachep,void * objp) __kmem_cache_free_locked() argument 134 kmem_cache_free_locked(struct kmem_cache * cachep,void * objp) kmem_cache_free_locked() argument 143 kmem_cache_free(struct kmem_cache * cachep,void * objp) kmem_cache_free() argument 150 kmem_cache_free_bulk(struct kmem_cache * cachep,size_t size,void ** list) kmem_cache_free_bulk() argument 161 kmem_cache_shrink(struct kmem_cache * cachep) kmem_cache_shrink() argument 165 kmem_cache_alloc_bulk(struct kmem_cache * cachep,gfp_t gfp,size_t size,void ** p) kmem_cache_alloc_bulk() argument [all...] |
| /linux/tools/include/linux/ |
| H A D | slab.h | 145 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 bool kmem_cache_alloc_bulk(struct kmem_cache *cachep, gfp_t gfp, size_t size,
|
| /linux/drivers/scsi/snic/ |
| H A D | snic_main.c | 819 struct kmem_cache *cachep; in snic_global_data_init() local 852 cachep = kmem_cache_create("snic_req_dfltsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init() 854 if (!cachep) { in snic_global_data_init() 860 snic_glob->req_cache[SNIC_REQ_CACHE_DFLT_SGL] = cachep; in snic_global_data_init() 865 cachep = kmem_cache_create("snic_req_maxsgl", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init() 867 if (!cachep) { in snic_global_data_init() 873 snic_glob->req_cache[SNIC_REQ_CACHE_MAX_SGL] = cachep; in snic_global_data_init() 876 cachep = kmem_cache_create("snic_req_tm", len, SNIC_SG_DESC_ALIGN, in snic_global_data_init() 878 if (!cachep) { in snic_global_data_init() 884 snic_glob->req_cache[SNIC_REQ_TM_CACHE] = cachep; in snic_global_data_init()
|
| /linux/mm/ |
| H A D | slab_common.c | 609 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument 611 kasan_cache_shrink(cachep); in kmem_cache_shrink() 613 return __kmem_cache_shrink(cachep); in kmem_cache_shrink() 1090 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument 1094 if (count < 2 || cachep->random_seq) in cache_random_seq_create() 1097 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create() 1098 if (!cachep->random_seq) in cache_random_seq_create() 1101 freelist_randomize(cachep->random_seq, count); in cache_random_seq_create() 1106 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument 1108 kfree(cachep->random_seq); in cache_random_seq_destroy() [all …]
|
| H A D | slab.h | 891 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, 893 void cache_random_seq_destroy(struct kmem_cache *cachep); 895 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create() argument 900 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy() argument
|
| H A D | slub.c | 6588 struct kmem_cache *cachep; in warn_free_bad_obj() 6597 cachep = slab->slab_cache; in warn_free_bad_obj() 6599 if (WARN_ONCE(cachep != s, in warn_free_bad_obj() 6601 s->name, obj, cachep ? cachep->name : "(NULL)")) { in warn_free_bad_obj() 6602 if (cachep) in warn_free_bad_obj() 6603 print_tracking(cachep, obj); in warn_free_bad_obj() 6587 struct kmem_cache *cachep; warn_free_bad_obj() local
|
| /linux/include/net/ |
| H A D | inet_hashtables.h | 218 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/Documentation/RCU/ |
| H A D | rculist_nulls.rst | 133 kmem_cache_free(cachep, obj); 207 obj = kmem_cache_alloc(cachep);
|
| /linux/fs/ext4/ |
| H A D | mballoc.c | 3385 struct kmem_cache *cachep = ext4_groupinfo_caches[cache_index]; in get_groupinfo_cache() local 3387 BUG_ON(!cachep); in get_groupinfo_cache() 3388 return cachep; in get_groupinfo_cache() 3436 struct kmem_cache *cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_add_groupinfo() local 3460 meta_group_info[i] = kmem_cache_zalloc(cachep, GFP_NOFS); in ext4_mb_add_groupinfo() 3513 struct kmem_cache *cachep; in ext4_mb_init_backend() local 3575 cachep = get_groupinfo_cache(sb->s_blocksize_bits); in ext4_mb_init_backend() 3580 kmem_cache_free(cachep, grp); in ext4_mb_init_backend() 3610 struct kmem_cache *cachep; in ext4_groupinfo_create_slab() local 3627 cachep = kmem_cache_create(ext4_groupinfo_slab_names[cache_index], in ext4_groupinfo_create_slab() [all …]
|
| /linux/include/linux/ |
| H A D | slab.h | 854 void *kmem_cache_alloc_noprof(struct kmem_cache *cachep, 929 void *kmem_cache_alloc_from_sheaf_noprof(struct kmem_cache *cachep, gfp_t gfp,
|
| /linux/fs/f2fs/ |
| H A D | f2fs.h | 3173 static inline void *f2fs_kmem_cache_alloc_nofail(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc_nofail() argument 3178 entry = kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc_nofail() 3180 entry = kmem_cache_alloc(cachep, flags | __GFP_NOFAIL); in f2fs_kmem_cache_alloc_nofail() 3184 static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc() argument 3188 return f2fs_kmem_cache_alloc_nofail(cachep, flags); in f2fs_kmem_cache_alloc() 3193 return kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc()
|
| /linux/lib/ |
| H A D | maple_tree.c | 6501 extern void kmem_cache_set_callback(struct kmem_cache *cachep, 6508 extern void kmem_cache_set_private(struct kmem_cache *cachep, void *private);
|