| 23 | } |
| 24 | |
| 25 | struct mempool * |
| 26 | mempool_find(const char *name) |
| 27 | { |
| 28 | struct mempool *mempool; |
| 29 | |
| 30 | if (name == NULL) |
| 31 | return NULL; |
| 32 | |
| 33 | TAILQ_FOREACH(mempool, &mempool_list, node) |
| 34 | if (strcmp(mempool->name, name) == 0) |
| 35 | return mempool; |
| 36 | |
| 37 | return NULL; |
| 38 | } |
| 39 | |
| 40 | struct mempool * |
| 41 | mempool_create(const char *name, struct mempool_params *params) |
no test coverage detected