Commit 4f79f081 authored by Swann Perarnau's avatar Swann Perarnau
Browse files

[feature] add a bit clear macro for nodemask

Useful and currently missing.
parent 9a6c5bba
Pipeline #6941 passed with stage
in 5 minutes and 3 seconds
......@@ -383,6 +383,12 @@ int aml_area_linux_manager_single_destroy(struct aml_area_linux_manager_data *da
* "i": bit to set, indicating a NUMA node.
*/
#define AML_NODEMASK_SET(mask, i) (mask[AML_NODEMASK_ELT(i)] |= AML_NODEMASK_BITMASK(i))
/*
* Clears a bit in a nodemask.
* "mask": an array of type "unsigned long", at least AML_NODEMASK_SZ long.
* "i": bit to clear, indicating a NUMA node.
*/
#define AML_NODEMASK_CLR(mask, i) (mask[AML_NODEMASK_ELT(i)] &= ~AML_NODEMASK_BITMASK(i))
/*
* Zero-initializes a nodemask.
* "mask": an array of type "unsigned long", at least AML_NODEMASK_SZ long.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment