| /linux/include/linux/ |
| H A D | mempool.h | 18 typedef struct mempool { struct 30 static inline bool mempool_initialized(struct mempool *pool) in mempool_initialized() argument 35 static inline bool mempool_is_saturated(struct mempool *pool) in mempool_is_saturated() 40 void mempool_exit(struct mempool *pool); 41 int mempool_init_node(struct mempool *pool, int min_nr, 44 int mempool_init_noprof(struct mempool *pool, int min_nr, 50 struct mempool *mempool_create(int min_nr, mempool_alloc_t *alloc_fn, 52 struct mempool *mempool_create_node_noprof(int min_nr, 62 int mempool_resize(struct mempool *pool, int new_min_nr); 63 void mempool_destroy(struct mempool *pool); [all …]
|
| H A D | btree.h | 37 mempool_t *mempool; member 67 void btree_init_mempool(struct btree_head *head, mempool_t *mempool);
|
| H A D | btree-128.h | 7 mempool_t *mempool) in btree_init_mempool128() argument 9 btree_init_mempool(&head->h, mempool); in btree_init_mempool128()
|
| H A D | btree-type.h | 15 mempool_t *mempool) in BTREE_FN() 17 btree_init_mempool(&head->h, mempool); in BTREE_FN()
|
| H A D | netfs.h | 24 typedef struct mempool mempool_t;
|
| /linux/mm/ |
| H A D | mempool.c | 41 static void poison_error(struct mempool *pool, void *element, size_t size, in poison_error() 58 static void __check_element(struct mempool *pool, void *element, size_t size) in __check_element() 74 static void check_element(struct mempool *pool, void *element) in check_element() 113 static void poison_element(struct mempool *pool, void *element) in poison_element() 144 static inline void check_element(struct mempool *pool, void *element) in check_element() 147 static inline void poison_element(struct mempool *pool, void *element) in poison_element() 152 static __always_inline bool kasan_poison_element(struct mempool *pool, in kasan_poison_element() 163 static void kasan_unpoison_element(struct mempool *pool, void *element) in kasan_unpoison_element() 175 static __always_inline void add_element(struct mempool *pool, void *element) in add_element() 183 static void *remove_element(struct mempool *pool) in remove_element() [all …]
|
| H A D | Makefile | 51 obj-y := filemap.o mempool.o oom_kill.o fadvise.o \
|
| /linux/lib/ |
| H A D | btree.c | 96 node = mempool_alloc(head->mempool, gfp); in btree_node_alloc() 181 void btree_init_mempool(struct btree_head *head, mempool_t *mempool) in btree_init_mempool() argument 184 head->mempool = mempool; in btree_init_mempool() 191 head->mempool = mempool_create(0, btree_alloc, btree_free, NULL); in btree_init() 192 if (!head->mempool) in btree_init() 200 mempool_free(head->node, head->mempool); in btree_destroy() 201 mempool_destroy(head->mempool); in btree_destroy() 202 head->mempool = NULL; in btree_destroy() 440 mempool_free(node, head->mempool); in btree_shrink() 475 mempool_free(new, head->mempool); in btree_insert_level() [all …]
|
| /linux/fs/netfs/ |
| H A D | objects.c | 27 mempool_t *mempool = ctx->ops->request_pool ?: &netfs_request_pool; in netfs_alloc_request() local 28 struct kmem_cache *cache = mempool->pool_data; in netfs_alloc_request() 32 rreq = mempool_alloc(mempool, GFP_KERNEL); in netfs_alloc_request() 200 mempool_t *mempool = rreq->netfs_ops->subrequest_pool ?: &netfs_subrequest_pool; in netfs_alloc_subrequest() local 201 struct kmem_cache *cache = mempool->pool_data; in netfs_alloc_subrequest()
|
| /linux/drivers/firmware/qcom/ |
| H A D | qcom_qseecom_uefisecapp.c | 278 struct qcom_tzmem_pool *mempool; member 339 cmd_buf = qcom_tzmem_alloc(qcuefi->mempool, cmd_buf_size, GFP_KERNEL); in qsee_uefi_get_variable() 469 cmd_buf = qcom_tzmem_alloc(qcuefi->mempool, cmd_buf_size, GFP_KERNEL); in qsee_uefi_set_variable() 556 cmd_buf = qcom_tzmem_alloc(qcuefi->mempool, cmd_buf_size, GFP_KERNEL); in qsee_uefi_get_next_variable() 654 cmd_buf = qcom_tzmem_alloc(qcuefi->mempool, cmd_buf_size, GFP_KERNEL); in qsee_uefi_query_variable_info() 823 qcuefi->mempool = devm_qcom_tzmem_pool_new(&aux_dev->dev, &pool_config); in qcom_uefisecapp_probe() 824 if (IS_ERR(qcuefi->mempool)) in qcom_uefisecapp_probe() 825 return PTR_ERR(qcuefi->mempool); in qcom_uefisecapp_probe()
|
| /linux/Documentation/admin-guide/aoe/ |
| H A D | todo.rst | 14 driver. By using a mempool for allocating all but the first few
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | mm-api.rst | 97 mm/mempool.c
|
| /linux/Documentation/core-api/ |
| H A D | mm-api.rst | 91 .. kernel-doc:: mm/mempool.c
|
| /linux/Documentation/admin-guide/device-mapper/ |
| H A D | dm-io.rst | 70 Dm-io will attempt to resize its mempool to make sure enough pages are
|
| /linux/ |
| H A D | MAINTAINERS | 24064 F: include/linux/mempool.h 24067 F: mm/mempool.c
|