mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 14:52:34 +00:00
lib: bitmap: Introduce node-aware alloc API
Expose new node-aware API for bitmap allocation: bitmap_alloc_node() / bitmap_zalloc_node(). Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Moshe Shemesh <moshe@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
06338ceff9
commit
7529cc7fbd
2 changed files with 15 additions and 0 deletions
|
@ -123,6 +123,8 @@ struct device;
|
|||
*/
|
||||
unsigned long *bitmap_alloc(unsigned int nbits, gfp_t flags);
|
||||
unsigned long *bitmap_zalloc(unsigned int nbits, gfp_t flags);
|
||||
unsigned long *bitmap_alloc_node(unsigned int nbits, gfp_t flags, int node);
|
||||
unsigned long *bitmap_zalloc_node(unsigned int nbits, gfp_t flags, int node);
|
||||
void bitmap_free(const unsigned long *bitmap);
|
||||
|
||||
/* Managed variants of the above. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue