include/linux/iommu-debug-pagealloc.h
Source file repositories/reference/linux-study-clean/include/linux/iommu-debug-pagealloc.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/iommu-debug-pagealloc.h- Extension
.h- Size
- 860 bytes
- Lines
- 33
- 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
- No C-style include directives detected by the generator.
Detected Declarations
function iommu_debug_check_unmappedfunction iommu_debug_check_unmapped
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (C) 2025 - Google Inc
* Author: Mostafa Saleh <smostafa@google.com>
* IOMMU API debug page alloc sanitizer
*/
#ifndef __LINUX_IOMMU_DEBUG_PAGEALLOC_H
#define __LINUX_IOMMU_DEBUG_PAGEALLOC_H
#ifdef CONFIG_IOMMU_DEBUG_PAGEALLOC
DECLARE_STATIC_KEY_FALSE(iommu_debug_initialized);
extern struct page_ext_operations page_iommu_debug_ops;
void __iommu_debug_check_unmapped(const struct page *page, int numpages);
static inline void iommu_debug_check_unmapped(const struct page *page, int numpages)
{
if (static_branch_unlikely(&iommu_debug_initialized))
__iommu_debug_check_unmapped(page, numpages);
}
#else
static inline void iommu_debug_check_unmapped(const struct page *page,
int numpages)
{
}
#endif /* CONFIG_IOMMU_DEBUG_PAGEALLOC */
#endif /* __LINUX_IOMMU_DEBUG_PAGEALLOC_H */
Annotation
- Detected declarations: `function iommu_debug_check_unmapped`, `function iommu_debug_check_unmapped`.
- 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.