Searched defs:alloc_fn (Results 1 - 2 of 2) sorted by relevance

/mm/
H A Dmempool.c53 * @alloc_fn: user-defined element-allocation function.
59 * functions. This function might sleep. Both the alloc_fn() and the free_fn()
63 mempool_t *mempool_create(int min_nr, mempool_alloc_t *alloc_fn, argument
66 return mempool_create_node(min_nr,alloc_fn,free_fn, pool_data,-1);
70 mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, argument
87 pool->alloc = alloc_fn;
189 * this function only sleeps if the alloc_fn() function sleeps or
H A Dpercpu.c1580 * @alloc_fn: function to allocate percpu page
1587 * by calling @alloc_fn and used as-is without being mapped into
1609 pcpu_fc_alloc_fn_t alloc_fn,
1643 ptr = alloc_fn(cpu, gi->nr_units * ai->unit_size, atom_size);
1710 * @alloc_fn: function to allocate percpu page, always called with PAGE_SIZE
1724 pcpu_fc_alloc_fn_t alloc_fn,
1758 ptr = alloc_fn(cpu, PAGE_SIZE, PAGE_SIZE);
1606 pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size, size_t atom_size, pcpu_fc_cpu_distance_fn_t cpu_distance_fn, pcpu_fc_alloc_fn_t alloc_fn, pcpu_fc_free_fn_t free_fn) argument
1723 pcpu_page_first_chunk(size_t reserved_size, pcpu_fc_alloc_fn_t alloc_fn, pcpu_fc_free_fn_t free_fn, pcpu_fc_populate_pte_fn_t populate_pte_fn) argument

Completed in 7 milliseconds