kernel/kallsyms.c
Source file repositories/reference/linux-study-clean/kernel/kallsyms.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/kallsyms.c- Extension
.c- Size
- 23480 bytes
- Lines
- 938
- Domain
- Core OS
- Bucket
- Scheduler, Processes, Timers, Sync, And Syscalls
- Inferred role
- Core OS: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kallsyms.hlinux/init.hlinux/seq_file.hlinux/fs.hlinux/kdb.hlinux/err.hlinux/proc_fs.hlinux/sched.hlinux/ctype.hlinux/slab.hlinux/filter.hlinux/ftrace.hlinux/kprobes.hlinux/build_bug.hlinux/compiler.hlinux/module.hlinux/kernel.hlinux/bsearch.hlinux/btf_ids.hkallsyms_internal.h
Detected Declarations
struct kallsym_iterstruct bpf_iter__ksymfunction compressionfunction kallsyms_get_symbol_typefunction get_symbol_offsetfunction kallsyms_sym_addressfunction get_symbol_seqfunction kallsyms_lookup_namesfunction kallsyms_lookup_namefunction kallsyms_on_each_symbolfunction kallsyms_on_each_match_symbolfunction get_symbol_posfunction kallsyms_lookup_size_offsetfunction kallsyms_lookup_buildidfunction lookup_symbol_namefunction append_buildidfunction append_buildidfunction __sprint_symbolfunction sprint_symbolfunction sprint_symbol_build_idfunction sprint_symbol_no_offsetfunction sprint_symbolfunction sprint_symbolfunction get_ksymbol_modfunction ftrace_mod_get_kallsymfunction get_ksymbol_bpffunction get_ksymbol_kprobefunction get_ksymbol_corefunction reset_iterfunction positionfunction update_iterfunction s_stopfunction ksym_prog_seq_showfunction bpf_iter_ksym_seq_showfunction bpf_iter_ksym_seq_stopfunction bpf_iter_ksym_initfunction bpf_ksym_iter_registerfunction kallsyms_openfunction kallsyms_initmodule init kallsyms_initexport sprint_symbolexport sprint_symbol_build_idexport sprint_symbol_no_offset
Annotated Snippet
device_initcall(kallsyms_init);
Annotation
- Immediate include surface: `linux/kallsyms.h`, `linux/init.h`, `linux/seq_file.h`, `linux/fs.h`, `linux/kdb.h`, `linux/err.h`, `linux/proc_fs.h`, `linux/sched.h`.
- Detected declarations: `struct kallsym_iter`, `struct bpf_iter__ksym`, `function compression`, `function kallsyms_get_symbol_type`, `function get_symbol_offset`, `function kallsyms_sym_address`, `function get_symbol_seq`, `function kallsyms_lookup_names`, `function kallsyms_lookup_name`, `function kallsyms_on_each_symbol`.
- Atlas domain: Core OS / Scheduler, Processes, Timers, Sync, And Syscalls.
- Implementation status: integration 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.