| /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/drivers/scsi/snic/ |
| H A D | snic_main.c | 818 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 D | slab.h | 606 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, 608 void cache_random_seq_destroy(struct kmem_cache *cachep); 610 static inline int cache_random_seq_create(struct kmem_cache *cachep, in cache_random_seq_create() argument 615 static inline void cache_random_seq_destroy(struct kmem_cache *cachep) { } in cache_random_seq_destroy() argument
|
| H A D | slab_common.c | 562 int kmem_cache_shrink(struct kmem_cache *cachep) in kmem_cache_shrink() argument 564 kasan_cache_shrink(cachep); in kmem_cache_shrink() 566 return __kmem_cache_shrink(cachep); in kmem_cache_shrink() 1054 int cache_random_seq_create(struct kmem_cache *cachep, unsigned int count, in cache_random_seq_create() argument 1058 if (count < 2 || cachep->random_seq) in cache_random_seq_create() 1061 cachep->random_seq = kcalloc(count, sizeof(unsigned int), gfp); in cache_random_seq_create() 1062 if (!cachep->random_seq) in cache_random_seq_create() 1065 freelist_randomize(cachep->random_seq, count); in cache_random_seq_create() 1070 void cache_random_seq_destroy(struct kmem_cache *cachep) in cache_random_seq_destroy() argument 1072 kfree(cachep->random_seq); in cache_random_seq_destroy() [all …]
|
| H A D | slub.c | 6753 struct kmem_cache *cachep; in cache_from_obj() 6759 cachep = virt_to_cache(x); in cache_from_obj() 6760 if (WARN(cachep && cachep != s, in cache_from_obj() 6762 __func__, s->name, cachep->name)) in cache_from_obj() 6763 print_tracking(cachep, x); in cache_from_obj() 6764 return cachep; 6751 struct kmem_cache *cachep; cache_from_obj() local
|
| /linux/Documentation/RCU/ |
| H A D | rculist_nulls.rst | 133 kmem_cache_free(cachep, obj); 207 obj = kmem_cache_alloc(cachep);
|
| /linux/include/linux/ |
| H A D | slab.h | 773 void *kmem_cache_alloc_noprof(struct kmem_cache *cachep, 846 void *kmem_cache_alloc_from_sheaf_noprof(struct kmem_cache *cachep, gfp_t gfp,
|
| /linux/fs/f2fs/ |
| H A D | f2fs.h | 3018 static inline void *f2fs_kmem_cache_alloc_nofail(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc_nofail() argument 3023 entry = kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc_nofail() 3025 entry = kmem_cache_alloc(cachep, flags | __GFP_NOFAIL); in f2fs_kmem_cache_alloc_nofail() 3029 static inline void *f2fs_kmem_cache_alloc(struct kmem_cache *cachep, in f2fs_kmem_cache_alloc() argument 3033 return f2fs_kmem_cache_alloc_nofail(cachep, flags); in f2fs_kmem_cache_alloc() 3038 return kmem_cache_alloc(cachep, flags); in f2fs_kmem_cache_alloc()
|
| /linux/lib/ |
| H A D | maple_tree.c | 6565 extern void kmem_cache_set_callback(struct kmem_cache *cachep, 6572 extern void kmem_cache_set_private(struct kmem_cache *cachep, void *private);
|