Commit 24a640a2 authored by Swann Perarnau's avatar Swann Perarnau

[features] add missing macros and prototypes

A few missing declarations in aml.h, to make it easier to deal with the
library.
parent f79e5b43
...@@ -133,6 +133,7 @@ struct aml_area_posix_data { ...@@ -133,6 +133,7 @@ struct aml_area_posix_data {
sizeof(struct aml_area)) sizeof(struct aml_area))
int aml_area_posix_create(struct aml_area **); int aml_area_posix_create(struct aml_area **);
int aml_area_posix_vinit(struct aml_area *);
int aml_area_posix_init(struct aml_area *); int aml_area_posix_init(struct aml_area *);
int aml_area_posix_destroy(struct aml_area *); int aml_area_posix_destroy(struct aml_area *);
...@@ -166,6 +167,12 @@ int aml_area_linux_manager_single_destroy(struct aml_area_linux_manager_data *); ...@@ -166,6 +167,12 @@ int aml_area_linux_manager_single_destroy(struct aml_area_linux_manager_data *);
#define AML_NODEMASK_BITMASK(i) ((unsigned long)1 << ((i) % AML_NODEMASK_NBITS)) #define AML_NODEMASK_BITMASK(i) ((unsigned long)1 << ((i) % AML_NODEMASK_NBITS))
#define AML_NODEMASK_ISSET(mask, i) \ #define AML_NODEMASK_ISSET(mask, i) \
((mask[AML_NODEMASK_ELT(i)] & AML_NODEMASK_BITMASK(i)) != 0) ((mask[AML_NODEMASK_ELT(i)] & AML_NODEMASK_BITMASK(i)) != 0)
#define AML_NODEMASK_SET(mask, i) (mask[AML_NODEMASK_ELT(i)] |= AML_NODEMASK_BITMASK(i))
#define AML_NODEMASK_ZERO(mask) \
do { \
for(unsigned int __i = 0; __i < AML_NODEMASK_SZ; __i++) \
mask[__i] = 0; \
} while(0)
struct aml_area_linux_mbind_data { struct aml_area_linux_mbind_data {
......
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