arch/loongarch/include/asm/elf.h
Source file repositories/reference/linux-study-clean/arch/loongarch/include/asm/elf.h
File Facts
- System
- Linux kernel
- Corpus path
arch/loongarch/include/asm/elf.h- Extension
.h- Size
- 10463 bytes
- Lines
- 372
- Domain
- Architecture Layer
- Bucket
- arch/loongarch
- 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
linux/auxvec.hlinux/fs.huapi/linux/elf.hasm/current.hasm/vdso.hasm/hwcap.h
Detected Declarations
struct linux_binprmstruct arch_elf_state
Annotated Snippet
struct arch_elf_state {
int fp_abi;
int interp_fp_abi;
};
#define LOONGARCH_ABI_FP_ANY (0)
#define INIT_ARCH_ELF_STATE { \
.fp_abi = LOONGARCH_ABI_FP_ANY, \
.interp_fp_abi = LOONGARCH_ABI_FP_ANY, \
}
extern int arch_elf_pt_proc(void *ehdr, void *phdr, struct file *elf,
bool is_interp, struct arch_elf_state *state);
extern int arch_check_elf(void *ehdr, bool has_interpreter, void *interp_ehdr,
struct arch_elf_state *state);
#endif /* _ASM_ELF_H */
Annotation
- Immediate include surface: `linux/auxvec.h`, `linux/fs.h`, `uapi/linux/elf.h`, `asm/current.h`, `asm/vdso.h`, `asm/hwcap.h`.
- Detected declarations: `struct linux_binprm`, `struct arch_elf_state`.
- Atlas domain: Architecture Layer / arch/loongarch.
- 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.