Lines Matching refs:node_states
390 enum node_states { enum
409 extern nodemask_t node_states[NR_NODE_STATES];
412 static inline int node_state(int node, enum node_states state) in node_state()
414 return node_isset(node, node_states[state]); in node_state()
417 static inline void node_set_state(int node, enum node_states state) in node_set_state()
419 __node_set(node, &node_states[state]); in node_set_state()
422 static inline void node_clear_state(int node, enum node_states state) in node_clear_state()
424 __node_clear(node, &node_states[state]); in node_clear_state()
427 static inline int num_node_state(enum node_states state) in num_node_state()
429 return nodes_weight(node_states[state]); in num_node_state()
433 for_each_node_mask((__node), node_states[__state])
435 #define first_online_node first_node(node_states[N_ONLINE])
436 #define first_memory_node first_node(node_states[N_MEMORY])
439 return next_node(nid, node_states[N_ONLINE]); in next_online_node()
443 return next_node(nid, node_states[N_MEMORY]); in next_memory_node()
463 static inline int node_state(int node, enum node_states state) in node_state()
468 static inline void node_set_state(int node, enum node_states state) in node_set_state()
472 static inline void node_clear_state(int node, enum node_states state) in node_clear_state()
476 static inline int num_node_state(enum node_states state) in num_node_state()
504 #define node_online_map node_states[N_ONLINE]
505 #define node_possible_map node_states[N_POSSIBLE]