include/linux/nodemask.h
Source file repositories/reference/linux-study-clean/include/linux/nodemask.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/nodemask.h- Extension
.h- Size
- 17781 bytes
- Lines
- 541
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/threads.hlinux/bitmap.hlinux/minmax.hlinux/nodemask_types.hlinux/random.h
Detected Declarations
struct nodemask_scratchenum node_statesfunction __nodemask_pr_bitsfunction errorfunction __node_clearfunction __nodes_setallfunction __nodes_clearfunction __node_test_and_setfunction __nodes_andfunction __nodes_orfunction __nodes_xorfunction __nodes_andnotfunction __nodes_copyfunction __nodes_complementfunction __nodes_equalfunction __nodes_intersectsfunction __nodes_subsetfunction __nodes_emptyfunction __nodes_fullfunction __nodes_weightfunction __first_nodefunction __next_nodefunction __next_node_infunction init_nodemask_of_nodefunction __first_unset_nodefunction __nodemask_parse_userfunction __nodelist_parsefunction __node_remapfunction __nodes_remapfunction __nodes_ontofunction __nodes_foldfunction node_statefunction node_set_statefunction node_clear_statefunction num_node_statefunction next_online_nodefunction next_memory_nodefunction node_set_onlinefunction node_set_offlinefunction node_statefunction node_set_statefunction node_random
Annotated Snippet
struct nodemask_scratch {
nodemask_t mask1;
nodemask_t mask2;
};
#define NODEMASK_SCRATCH(x) \
NODEMASK_ALLOC(struct nodemask_scratch, x, \
GFP_KERNEL | __GFP_NORETRY)
#define NODEMASK_SCRATCH_FREE(x) NODEMASK_FREE(x)
#endif /* __LINUX_NODEMASK_H */
Annotation
- Immediate include surface: `linux/threads.h`, `linux/bitmap.h`, `linux/minmax.h`, `linux/nodemask_types.h`, `linux/random.h`.
- Detected declarations: `struct nodemask_scratch`, `enum node_states`, `function __nodemask_pr_bits`, `function error`, `function __node_clear`, `function __nodes_setall`, `function __nodes_clear`, `function __node_test_and_set`, `function __nodes_and`, `function __nodes_or`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.