build_id_parse_file(9)
build_id_parse_file(9) π
okay bestie, welcome to the Kernel API Manual β today's main character is build_id_parse_file(9), and she is here to parse the build ID of an ELF file. no cap, let's get into it β¨
π NAME π
build_id_parse_file β Parse build ID of ELF file π¦
β¨ SYNOPSIS β¨
int build_id_parse_file (struct file *file , unsigned char *build_id ,
__u32 *size );
π«Ά ARGUMENTS π«Ά
fileβ file objectbuild_idβ buffer to store build id, at leastBUILD_ID_SIZElongsizeβ returns actual build id size in case of success
π DESCRIPTION π
So here's the vibe check: this function assumes faultable context and can cause page faults to bring in file data into page cache. lowkey important, highkey worth knowing π
β RETURN β
0 on success; negative error, otherwise. periodt π
π SEE ALSO π
- Kernel file
./lib/buildid.c build_id_parse_nofault(9)build_id_parse(9)build_id_parse_buf(9)init_vmlinux_build_id(9)
mwah π this little page is from source/version ./lib, dated October 2026, and it ate fr fr πβ¨
π¦ 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