Lines Matching defs:nodes
78 * set of nodes anyway.
140 * get_allowed_nodes_arr - get number and array of available nodes
141 * @num_nodes: pointer where number of available nodes will be stored
142 * @nodes: array of available node ids, this is MPOL_F_MEMS_ALLOWED
152 int get_allowed_nodes_arr(int flag, int *num_nodes, int **nodes)
160 if (nodes)
161 *nodes = NULL;
173 if (nodes)
174 *nodes = malloc(sizeof(int) * max_node);
177 if (nodemask == NULL || (nodes && (*nodes == NULL))) {
182 /* allow all nodes at start, then filter based on flags */
194 if (nodes)
195 (*nodes)[*num_nodes] = i;
206 * get_allowed_nodes - convenience function to get fixed number of nodes
207 * @count: how many nodes to get
213 * -3 on not enough allowed nodes
221 int *nodes = NULL;
223 ret = get_allowed_nodes_arr(flag, &num_nodes, &nodes);
231 *nodep = nodes[i];
238 free(nodes);
250 printf("nodes (flag=%d): ", flag);
261 * nh_dump_nodes - dump info about nodes to stdout
274 * @min_nodes: find at least 'min_nodes' nodes with memory
276 * available nodes, where each node contains memory.