include/linux/panic.h
Source file repositories/reference/linux-study-clean/include/linux/panic.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/panic.h- Extension
.h- Size
- 3281 bytes
- Lines
- 114
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/compiler_attributes.hlinux/stdarg.hlinux/types.h
Detected Declarations
struct pt_regsstruct taint_flagenum lockdep_okfunction set_arch_panic_timeout
Annotated Snippet
struct taint_flag {
char c_true; /* character printed when tainted */
char c_false; /* character printed when not tainted */
const char *desc; /* verbose description of the set taint flag */
};
extern const struct taint_flag taint_flags[TAINT_FLAGS_COUNT];
enum lockdep_ok {
LOCKDEP_STILL_OK,
LOCKDEP_NOW_UNRELIABLE,
};
extern const char *print_tainted(void);
extern const char *print_tainted_verbose(void);
extern void add_taint(unsigned flag, enum lockdep_ok);
extern int test_taint(unsigned flag);
extern unsigned long get_taint(void);
#endif /* _LINUX_PANIC_H */
Annotation
- Immediate include surface: `linux/compiler_attributes.h`, `linux/stdarg.h`, `linux/types.h`.
- Detected declarations: `struct pt_regs`, `struct taint_flag`, `enum lockdep_ok`, `function set_arch_panic_timeout`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.