include/linux/hw_breakpoint.h
Source file repositories/reference/linux-study-clean/include/linux/hw_breakpoint.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/hw_breakpoint.h- Extension
.h- Size
- 4291 bytes
- Lines
- 146
- 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/perf_event.huapi/linux/hw_breakpoint.h
Detected Declarations
enum bp_type_idxfunction hw_breakpoint_initfunction ptrace_breakpoint_initfunction hw_breakpoint_addrfunction hw_breakpoint_typefunction hw_breakpoint_lenfunction init_hw_breakpointfunction register_user_hw_breakpointfunction modify_user_hw_breakpointfunction modify_user_hw_breakpoint_checkfunction register_wide_hw_breakpoint_cpufunction register_wide_hw_breakpointfunction register_perf_hw_breakpointfunction unregister_hw_breakpointfunction reserve_bp_slotfunction release_bp_slot
Annotated Snippet
static inline int __init init_hw_breakpoint(void) { return 0; }
static inline struct perf_event *
register_user_hw_breakpoint(struct perf_event_attr *attr,
perf_overflow_handler_t triggered,
void *context,
struct task_struct *tsk) { return NULL; }
static inline int
modify_user_hw_breakpoint(struct perf_event *bp,
struct perf_event_attr *attr) { return -ENOSYS; }
static inline int
modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr,
bool check) { return -ENOSYS; }
static inline struct perf_event *
register_wide_hw_breakpoint_cpu(struct perf_event_attr *attr,
perf_overflow_handler_t triggered,
void *context,
int cpu) { return NULL; }
static inline struct perf_event * __percpu *
register_wide_hw_breakpoint(struct perf_event_attr *attr,
perf_overflow_handler_t triggered,
void *context) { return NULL; }
static inline int
register_perf_hw_breakpoint(struct perf_event *bp) { return -ENOSYS; }
static inline void unregister_hw_breakpoint(struct perf_event *bp) { }
static inline void
unregister_wide_hw_breakpoint(struct perf_event * __percpu *cpu_events) { }
static inline bool hw_breakpoint_is_used(void) { return false; }
static inline int
reserve_bp_slot(struct perf_event *bp) {return -ENOSYS; }
static inline void release_bp_slot(struct perf_event *bp) { }
static inline void flush_ptrace_hw_breakpoint(struct task_struct *tsk) { }
static inline struct arch_hw_breakpoint *counter_arch_bp(struct perf_event *bp)
{
return NULL;
}
#endif /* CONFIG_HAVE_HW_BREAKPOINT */
#endif /* _LINUX_HW_BREAKPOINT_H */
Annotation
- Immediate include surface: `linux/perf_event.h`, `uapi/linux/hw_breakpoint.h`.
- Detected declarations: `enum bp_type_idx`, `function hw_breakpoint_init`, `function ptrace_breakpoint_init`, `function hw_breakpoint_addr`, `function hw_breakpoint_type`, `function hw_breakpoint_len`, `function init_hw_breakpoint`, `function register_user_hw_breakpoint`, `function modify_user_hw_breakpoint`, `function modify_user_hw_breakpoint_check`.
- 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.