aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bitmap.h
diff options
context:
space:
mode:
authorTariq Toukan <tariqt@nvidia.com>2020-12-30 11:41:52 +0200
committerSaeed Mahameed <saeedm@nvidia.com>2021-10-26 19:30:38 -0700
commit7529cc7fbd9c02eda6851f3260416cbe198a321d (patch)
tree684d741c4ca88d3c91b0a7c41c7f9cf5fa95399b /include/linux/bitmap.h
parentnet: phy: fixed warning: Function parameter not described (diff)
downloadlinux-dev-7529cc7fbd9c02eda6851f3260416cbe198a321d.tar.xz
linux-dev-7529cc7fbd9c02eda6851f3260416cbe198a321d.zip
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>
Diffstat (limited to 'include/linux/bitmap.h')
-rw-r--r--include/linux/bitmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/bitmap.h b/include/linux/bitmap.h
index 37f36dad18bd..a241dcf50f39 100644
--- a/include/linux/bitmap.h
+++ b/include/linux/bitmap.h
@@ -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. */