ceph_fscrypt_decrypt_pages(9)
π 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 π
ceph_fname_to_usr(9)ceph_fscrypt_prepare_readdir(9)ceph_fscrypt_decrypt_extents(9)ceph_fscrypt_encrypt_pages(9)
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
- 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