Lines Matching refs:nodemask
96 * \brief sets the memory interleave mask for the current task to nodemask
98 * \param nodemask bitmask representing the nodes
105 void numa_set_interleave_mask(struct bitmap *nodemask)
109 if (!nodemask) {
114 if (bitmap_get_nbits(nodemask) < NUMA_MAX_NUMNODES) {
115 NUMA_WARNING("supplied interleave mask (%p) has to less bits!", nodemask);
118 bitmap_copy(numa_alloc_interleave_mask, nodemask);
130 * \brief binds the current task and its children to the nodes specified in nodemask.
132 * \param nodemask bitmap representing the nodes
134 void numa_bind(struct bitmap *nodemask)
158 * \param nodemask bitmap representing the nodes
160 * The task will only allocate memory from the nodes set in nodemask.
164 errval_t numa_set_membind(struct bitmap *nodemask)
169 if (!nodemask) {
173 if (bitmap_get_nbits(nodemask) < NUMA_MAX_NUMNODES) {
174 NUMA_WARNING("supplied interleave mask (%p) has to less bits!", nodemask);
179 bitmap_copy(numa_alloc_bind_mask, nodemask);
308 * the nodemask.
311 * \param nodemask subset of nodes to consider for allocation
320 struct bitmap *nodemask)
325 bitmap_clear_range(nodemask, numa_num_configured_nodes(),
326 bitmap_get_nbits(nodemask));
329 nodeid_t nodes = bitmap_get_weight(nodemask);
358 bitmap_bit_t node = bitmap_get_first(nodemask);
369 node = bitmap_get_next(nodemask, node);