/* SPDX-License-Identifier: GPL-2.0 */ /* * include/linux/node.h - generic node definition * * This is mainly for topological representation. We define the * basic 'struct node' here, which can be embedded in per-arch * definitions of processors. * * Basic handling of the devices is done in drivers/base/node.c * and system devices are handled in drivers/base/sys.c. * * Nodes are exported via driverfs in the class/node/devices/ * directory.
*/ #ifndef _LINUX_NODE_H_ #define _LINUX_NODE_H_
/* * ACCESS_COORDINATE_LOCAL correlates to ACCESS CLASS 0 * - access_coordinate between target node and nearest initiator node * ACCESS_COORDINATE_CPU correlates to ACCESS CLASS 1 * - access_coordinate between target node and nearest CPU node
*/ enum access_coordinate_class {
ACCESS_COORDINATE_LOCAL,
ACCESS_COORDINATE_CPU,
ACCESS_COORDINATE_MAX
};
/** * struct node_cache_attrs - system memory caching attributes * * @indexing: The ways memory blocks may be placed in cache * @write_policy: Write back or write through policy * @size: Total size of cache in bytes * @line_size: Number of bytes fetched on a cache miss * @level: The cache hierarchy level * @address_mode: The address mode
*/ struct node_cache_attrs { enum cache_indexing indexing; enum cache_write_policy write_policy;
u64 size;
u16 line_size;
u8 level;
u16 address_mode;
};
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 ist noch experimentell.