tools/testing/vma/vma_internal.h
Source file repositories/reference/linux-study-clean/tools/testing/vma/vma_internal.h
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/vma/vma_internal.h- Extension
.h- Size
- 1676 bytes
- Lines
- 65
- 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
stdlib.hlinux/args.hlinux/atomic.hlinux/bitmap.hlinux/list.hlinux/maple_tree.hlinux/mm.hlinux/rbtree.hlinux/refcount.hlinux/slab.hinclude/stubs.hinclude/dup.hinclude/custom.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __MM_VMA_INTERNAL_H
#define __MM_VMA_INTERNAL_H
#include <stdlib.h>
#define CONFIG_MMU
#define CONFIG_PER_VMA_LOCK
#ifdef __CONCAT
#undef __CONCAT
#endif
#include <linux/args.h>
#include <linux/atomic.h>
#include <linux/bitmap.h>
#include <linux/list.h>
#include <linux/maple_tree.h>
#include <linux/mm.h>
#include <linux/rbtree.h>
#include <linux/refcount.h>
#include <linux/slab.h>
/*
* DUPLICATE typedef definitions from kernel source that have to be declared
* ahead of all other headers.
*/
#define __private
/* NUM_MM_FLAG_BITS defined by test code. */
typedef struct {
__private DECLARE_BITMAP(__mm_flags, NUM_MM_FLAG_BITS);
} mm_flags_t;
/* NUM_VMA_FLAG_BITS defined by test code. */
typedef struct {
DECLARE_BITMAP(__vma_flags, NUM_VMA_FLAG_BITS);
} __private vma_flags_t;
typedef unsigned long vm_flags_t;
#define pgoff_t unsigned long
typedef unsigned long pgprotval_t;
typedef struct pgprot { pgprotval_t pgprot; } pgprot_t;
typedef __bitwise unsigned int vm_fault_t;
#define VM_WARN_ON(_expr) (WARN_ON(_expr))
#define VM_WARN_ON_ONCE(_expr) (WARN_ON_ONCE(_expr))
#define VM_WARN_ON_VMG(_expr, _vmg) (WARN_ON(_expr))
#define VM_BUG_ON(_expr) (BUG_ON(_expr))
#define VM_BUG_ON_VMA(_expr, _vma) (BUG_ON(_expr))
#include "include/stubs.h"
#include "include/dup.h"
#include "include/custom.h"
#endif /* __MM_VMA_INTERNAL_H */
Annotation
- Immediate include surface: `stdlib.h`, `linux/args.h`, `linux/atomic.h`, `linux/bitmap.h`, `linux/list.h`, `linux/maple_tree.h`, `linux/mm.h`, `linux/rbtree.h`.
- 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.