include/linux/swapops.h
Source file repositories/reference/linux-study-clean/include/linux/swapops.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/swapops.h- Extension
.h- Size
- 9801 bytes
- Lines
- 365
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/radix-tree.hlinux/bug.hlinux/mm_types.hlinux/swapfile.h
Detected Declarations
struct page_vma_mapped_walkfunction entriesfunction swp_entryfunction swp_typefunction swp_offsetfunction swp_entry_to_ptefunction radix_to_swp_entryfunction make_readable_device_private_entryfunction make_writable_device_private_entryfunction make_device_exclusive_entryfunction make_readable_device_private_entryfunction make_writable_device_private_entryfunction make_device_exclusive_entryfunction make_readable_migration_entryfunction make_readable_exclusive_migration_entryfunction make_writable_migration_entryfunction migration_entry_supports_adfunction make_migration_entry_youngfunction make_migration_entry_dirtyfunction make_readable_migration_entryfunction make_readable_exclusive_migration_entryfunction make_writable_migration_entryfunction migration_entry_waitfunction make_migration_entry_dirtyfunction make_hwpoison_entryfunction is_hwpoison_entryfunction make_hwpoison_entryfunction is_hwpoison_entryfunction make_pte_marker_entryfunction make_pte_markerfunction make_poisoned_swp_entryfunction make_guard_swp_entryfunction swp_entry_to_pmdfunction set_pmd_migration_entryfunction remove_migration_pmdfunction pmd_migration_entry_wait
Annotated Snippet
static inline void pmd_migration_entry_wait(struct mm_struct *m, pmd_t *p) { }
static inline pmd_t swp_entry_to_pmd(swp_entry_t entry)
{
return __pmd(0);
}
#endif /* CONFIG_ARCH_ENABLE_THP_MIGRATION */
#endif /* CONFIG_MMU */
#endif /* _LINUX_SWAPOPS_H */
Annotation
- Immediate include surface: `linux/radix-tree.h`, `linux/bug.h`, `linux/mm_types.h`, `linux/swapfile.h`.
- Detected declarations: `struct page_vma_mapped_walk`, `function entries`, `function swp_entry`, `function swp_type`, `function swp_offset`, `function swp_entry_to_pte`, `function radix_to_swp_entry`, `function make_readable_device_private_entry`, `function make_writable_device_private_entry`, `function make_device_exclusive_entry`.
- 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.