tools/testing/memblock/internal.h
Source file repositories/reference/linux-study-clean/tools/testing/memblock/internal.h
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/memblock/internal.h- Extension
.h- Size
- 1379 bytes
- Lines
- 70
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- 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
struct pagefunction memblock_free_pagesfunction deferred_pages_enabledfunction __is_kernelfunction init_deferred_page
Annotated Snippet
struct page {};
static inline void *page_address(struct page *page)
{
BUG();
return page;
}
static inline struct page *virt_to_page(void *virt)
{
BUG();
return virt;
}
void memblock_free_pages(unsigned long pfn, unsigned int order)
{
}
static inline void accept_memory(phys_addr_t start, unsigned long size)
{
}
unsigned long free_reserved_area(void *start, void *end, int poison, const char *s);
void free_reserved_page(struct page *page);
static inline bool deferred_pages_enabled(void)
{
return false;
}
#define for_each_valid_pfn(pfn, start_pfn, end_pfn) \
for ((pfn) = (start_pfn); (pfn) < (end_pfn); (pfn)++)
static inline void *kasan_reset_tag(const void *addr)
{
return (void *)addr;
}
static inline bool __is_kernel(unsigned long addr)
{
return false;
}
#define for_each_valid_pfn(pfn, start_pfn, end_pfn) \
for ((pfn) = (start_pfn); (pfn) < (end_pfn); (pfn)++)
static inline void init_deferred_page(unsigned long pfn, int nid)
{
}
#define __SetPageReserved(p) ((void)(p))
#endif
Annotation
- Detected declarations: `struct page`, `function memblock_free_pages`, `function deferred_pages_enabled`, `function __is_kernel`, `function init_deferred_page`.
- Atlas domain: Support Tooling And Documentation / tools.
- 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.