staticconstchar * const help_opts[] = { "display this help message and exit", "disallow allocations from regions marked as hotplugged\n\t\t\t" "by simulating enabling the \"movable_node\" kernel\n\t\t\t" "parameter", "enable verbose output, which includes the name of the\n\t\t\t" "memblock function being tested, the name of the test,\n\t\t\t" "and whether the test passed or failed."
};
staticint verbose;
/* sets global variable returned by movable_node_is_enabled() stub */ bool movable_node_enabled;
/** * setup_numa_memblock: * Set up a memory layout with multiple NUMA nodes in a previously allocated * dummy physical memory. * @node_fracs: an array representing the fraction of MEM_SIZE contained in * each node in basis point units (one hundredth of 1% or 1/10000). * For example, if node 0 should contain 1/8 of MEM_SIZE, * node_fracs[0] = 1250. * * The nids will be set to 0 through NUMA_NODES - 1.
*/ void setup_numa_memblock(constunsignedint node_fracs[])
{
phys_addr_t base; int flags;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.