ceph_fscrypt_decrypt_pages(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– ceph_fscrypt_decrypt_pages(9) πŸ’–

okay bestie, welcome to the Kernel API Manual entry for ceph_fscrypt_decrypt_pages β€” yes that's a mouthful, yes it's iconic, let's get into it 🫢


✨ NAME ✨

ceph_fscrypt_decrypt_pages β€” decrypt an array of pages πŸ’…


✨ SYNOPSIS ✨

int ceph_fscrypt_decrypt_pages (struct inode *inode , struct page **page
, u64 off , int len );

like, that's the whole vibe check right there ✨


✨ ARGUMENTS ✨

  • inode β€” pointer to the inode that's associated with these pages πŸŽ€
  • page β€” pointer to the page array, aka the whole squad of pages 🌸
  • off β€” offset into the file where the read data starts, so it knows where the party begins πŸ’«
  • len β€” max length to decrypt, the ceiling on how much we're doing here πŸ¦‹

✨ DESCRIPTION ✨

so basically: decrypt an array of fscrypt'ed pages and return the amount of data decrypted ✨ like it hands you back a number and you're like "slay, thank you" πŸ’–

here's the tea though β€” any data in the page prior to the start of the first complete block in the read is ignored πŸ™ˆ. and any incomplete crypto blocks at the end of the array are ignored too β€” and ngl, the caller should probably zero those out, that's on you bestie 😭

Returns the length of the decrypted data or a negative errno. no cap, that's the return value. πŸ”₯

✨ SEE ALSO ✨

kernel file ./fs/ceph/crypto.c β€” go read it, it's giving main character energy πŸ‘‘


and that's the page, bestie πŸŽ€ sign-off time: this lil beauty lives in ./fs/ceph, dated October 2026, and it's literally the ceph_fscrypt_decrypt_pages(9) manual page β€” periodt πŸ’…βœ¨πŸ’œ

πŸ“¦ where this page comes from