arch/x86/um/shared/sysdep/ptrace.h

Source file repositories/reference/linux-study-clean/arch/x86/um/shared/sysdep/ptrace.h

File Facts

System
Linux kernel
Corpus path
arch/x86/um/shared/sysdep/ptrace.h
Extension
.h
Size
1790 bytes
Lines
68
Domain
Architecture Layer
Bucket
arch/x86
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.

Dependency Surface

Detected Declarations

Annotated Snippet

struct uml_pt_regs {
	unsigned long gp[MAX_REG_NR];
	struct faultinfo faultinfo;
	long syscall;
	int is_user;

	/* Dynamically sized FP registers (holds an XSTATE) */
	unsigned long fp[];
};

#define EMPTY_UML_PT_REGS { }

#define UPT_SYSCALL_NR(r) ((r)->syscall)
#define UPT_FAULTINFO(r) (&(r)->faultinfo)
#define UPT_IS_USER(r) ((r)->is_user)

extern int arch_init_registers(int pid);

#endif /* __SYSDEP_X86_PTRACE_H */

Annotation

Implementation Notes