include/linux/elfcore-compat.h
Source file repositories/reference/linux-study-clean/include/linux/elfcore-compat.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/elfcore-compat.h- Extension
.h- Size
- 1464 bytes
- Lines
- 67
- 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
linux/elf.hlinux/elfcore.hlinux/compat.hasm/elfcore-compat.h
Detected Declarations
struct compat_elf_siginfostruct compat_elf_prstatus_commonstruct compat_elf_prpsinfostruct compat_elf_prstatus
Annotated Snippet
#ifndef _LINUX_ELFCORE_COMPAT_H
#define _LINUX_ELFCORE_COMPAT_H
#include <linux/elf.h>
#include <linux/elfcore.h>
#include <linux/compat.h>
/*
* Make sure these layouts match the linux/elfcore.h native definitions.
*/
struct compat_elf_siginfo
{
compat_int_t si_signo;
compat_int_t si_code;
compat_int_t si_errno;
};
struct compat_elf_prstatus_common
{
struct compat_elf_siginfo pr_info;
short pr_cursig;
compat_ulong_t pr_sigpend;
compat_ulong_t pr_sighold;
compat_pid_t pr_pid;
compat_pid_t pr_ppid;
compat_pid_t pr_pgrp;
compat_pid_t pr_sid;
struct old_timeval32 pr_utime;
struct old_timeval32 pr_stime;
struct old_timeval32 pr_cutime;
struct old_timeval32 pr_cstime;
};
struct compat_elf_prpsinfo
{
char pr_state;
char pr_sname;
char pr_zomb;
char pr_nice;
compat_ulong_t pr_flag;
__compat_uid_t pr_uid;
__compat_gid_t pr_gid;
compat_pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
/*
* The hard-coded 16 is derived from TASK_COMM_LEN, but it can't be
* changed as it is exposed to userspace. We'd better make it hard-coded
* here.
*/
char pr_fname[16];
char pr_psargs[ELF_PRARGSZ];
};
#ifdef CONFIG_ARCH_HAS_ELFCORE_COMPAT
#include <asm/elfcore-compat.h>
#endif
struct compat_elf_prstatus
{
struct compat_elf_prstatus_common common;
compat_elf_gregset_t pr_reg;
compat_int_t pr_fpvalid;
};
#endif /* _LINUX_ELFCORE_COMPAT_H */
Annotation
- Immediate include surface: `linux/elf.h`, `linux/elfcore.h`, `linux/compat.h`, `asm/elfcore-compat.h`.
- Detected declarations: `struct compat_elf_siginfo`, `struct compat_elf_prstatus_common`, `struct compat_elf_prpsinfo`, `struct compat_elf_prstatus`.
- 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.