search for: is_node

Displaying 2 results from an estimated 2 matches for "is_node".

Did you mean: id_node
2013 Sep 06
21
[PATCH v2 0/5] xl: allow for node-wise specification of vcpu pinning
Hi all, This is the second take of a patch that I submitted some time ago for allowing specifying vcpu pinning taking NUMA nodes into account. IOW, something like this: * "nodes:0-3": all pCPUs of nodes 0,1,2,3;  * "nodes:0-3,^node:2": all pCPUS of nodes 0,1,3;  * "1,nodes:1-2,^6": pCPU 1 plus all pCPUs of nodes 1,2    but not pCPU 6; v1 was a single patch, this is
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...cast<const void*>(second_char); + } + /* implicit */ node_or_string(node* n) + : first(static_cast<const void*>(n)), second(nullptr) {} + node_or_string() : first(nullptr), second(nullptr) {} + + bool is_string() const { return second && first; } + bool is_node() const { return first && !second; } + bool is_empty() const { return !first && !second; } + + string_ref as_string() const + { + assert(is_string()); + return string_ref(static_cast<const char*>(first), + static_cast<const ch...