ref_reloc(9)
ref_reloc(9) π β¨
okay so welcome to the Kernel API Manual page for ref_reloc, bestie β it's giving kernel relocation offset realness and we're gonna get into it. No cap. π«Ά
β¨ NAME β¨
ref_reloc β kernel relocation offset. That's the whole vibe.
πΈ SYNOPSIS πΈ
u64 ref_reloc (struct kmap *kmap );
π ARGUMENTS π
kmapβ kernel maps and relocation reference symbol. It's the context baddie this function needs, iykyk. π
π¦ DESCRIPTION π¦
okay so ref_reloc returns the offset of kernel addresses, and it figures that out by using the relocation reference symbol. Translation? If the kernel has not been relocated, then the return value is zero. That's it. That's the tea. ββ¨
No cap. π§
π SEE ALSO π
- Kernel file
./tools/perf/util/symbol-elf.c elf_symtab__for_each_symbol(9)ref_reloc_sym_not_found(9)kcore_copy(9)populate_sdt_note(9)construct_sdt_notes_list(9)get_sdt_note_list(9)cleanup_sdt_note_list(9)sdt_notes__get_count(9)
mwah, signing off from the ./tools/perf/util source/version with the October 2026 date, ref_reloc(9) page β bye bestie π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms