arch/sh/include/asm/kprobes.h
Source file repositories/reference/linux-study-clean/arch/sh/include/asm/kprobes.h
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/include/asm/kprobes.h- Extension
.h- Size
- 1302 bytes
- Lines
- 56
- Domain
- Architecture Layer
- Bucket
- arch/sh
- 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-generic/kprobes.hlinux/types.hlinux/ptrace.h
Detected Declarations
struct kprobestruct arch_specific_insnstruct prev_kprobestruct kprobe_ctlblk
Annotated Snippet
struct arch_specific_insn {
/* copy of the original instruction */
kprobe_opcode_t insn[MAX_INSN_SIZE];
};
struct prev_kprobe {
struct kprobe *kp;
unsigned long status;
};
/* per-cpu kprobe control block */
struct kprobe_ctlblk {
unsigned long kprobe_status;
struct prev_kprobe prev_kprobe;
};
extern int kprobe_fault_handler(struct pt_regs *regs, int trapnr);
extern int kprobe_handle_illslot(unsigned long pc);
#else
#define kprobe_handle_illslot(pc) (-1)
#endif /* CONFIG_KPROBES */
#endif /* __ASM_SH_KPROBES_H */
Annotation
- Immediate include surface: `asm-generic/kprobes.h`, `linux/types.h`, `linux/ptrace.h`.
- Detected declarations: `struct kprobe`, `struct arch_specific_insn`, `struct prev_kprobe`, `struct kprobe_ctlblk`.
- Atlas domain: Architecture Layer / arch/sh.
- 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.