arch/mips/include/asm/sn/klkernvars.h
Source file repositories/reference/linux-study-clean/arch/mips/include/asm/sn/klkernvars.h
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/include/asm/sn/klkernvars.h- Extension
.h- Size
- 614 bytes
- Lines
- 30
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/sn/types.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef __ASM_SN_KLKERNVARS_H
#define __ASM_SN_KLKERNVARS_H
#define KV_MAGIC_OFFSET 0x0
#define KV_RO_NASID_OFFSET 0x4
#define KV_RW_NASID_OFFSET 0x6
#define KV_MAGIC 0x5f4b565f
#ifndef __ASSEMBLER__
#include <asm/sn/types.h>
typedef struct kern_vars_s {
int kv_magic;
nasid_t kv_ro_nasid;
nasid_t kv_rw_nasid;
unsigned long kv_ro_baseaddr;
unsigned long kv_rw_baseaddr;
} kern_vars_t;
#endif /* !__ASSEMBLER__ */
#endif /* __ASM_SN_KLKERNVARS_H */
Annotation
- Immediate include surface: `asm/sn/types.h`.
- Atlas domain: Architecture Layer / arch/mips.
- 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.