bpf_get_fsverity_digest(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– bpf_get_fsverity_digest(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie β€” today's main character is bpf_get_fsverity_digest(9). It's giving kernel API, it's giving fsverity, and we're reading this page together like the iconic little reference it is. ✨


🌸 NAME 🌸

bpf_get_fsverity_digest β€” read fsverity digest of file. That's the whole vibe: digest, file, done. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

__bpf_kfunc int bpf_get_fsverity_digest (struct file *file , const
       struct bpf_dynptr *digest_p );

πŸŽ€ ARGUMENTS πŸŽ€

  • file β€” file to get digest from. Like, the actual file, bestie. πŸ“
  • digest_p β€” (out) dynptr for struct fsverity_digest. It's the out-param situation, so the digest info goes here. 🫢

πŸ”₯ DESCRIPTION πŸ”₯

Read fsverity_digest of file into digest_ptr. That's the sentence, and honestly it ate. No cap. 😭

πŸ‘‘ RETURN πŸ‘‘

0 on success, a negative value on error. So: happy path = 0; sad path = negative value. Periodt. πŸ’€

🌈 SEE ALSO 🌈

Peep the Kernel file ./fs/verity/measure.c, plus fsverity_ioctl_measure(9) and fsverity_get_digest(9). iykyk. 🧚


xoxo, your Unix bestie πŸ’– β€” from the ./fs/verity source/version corner, dated October 2026. πŸŽ€

πŸ“¦ where this page comes from