crypt_extent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… crypt_extent(9) β€” Kernel API Manual πŸŽ€

okay so this is crypt_extent(9) from the Kernel API Manual, and bestie, we're about to get into some eCryptfs crypto business. buckle up ✨


🌸 NAME 🌸

crypt_extent β€”

and that's it. that's the whole name section. the description after the dash is literally blank, no cap, nothing there. the dash is just standing there alone with main character energy πŸ’€ iconic of it honestly.


πŸ¦‹ SYNOPSIS πŸ¦‹

int crypt_extent (struct ecryptfs_crypt_stat *crypt_stat , struct page
*dst_page , struct page *src_page , pgoff_t page_index , unsigned long
extent_offset , int op );

✨ ARGUMENTS ✨

  • crypt_stat β€” the crypt_stat holding the cryptographic context for the encryption operation. it's giving "everything you need to know lives in here" 🫢
  • dst_page β€” the page you write the result into. the destination, the landing spot, the final boss 🎯
  • src_page β€” the page you read from. the source, the origin story 🌱
  • page_index β€” the offset in the file, in units of PAGE_SIZE (yes, in units of PAGE_SIZE, not bytes, don't come for me)
  • extent_offset β€” the page extent offset, used when generating the IV. lowkey crucial πŸ”₯
  • op β€” ENCRYPT or DECRYPT, telling us which operation we actually want. pick one, bestie πŸ’…

🌈 DESCRIPTION 🌈

so what does it actually do? it encrypts or decrypts one extent of data. that's the whole vibe. one extent, in or out, done 🧚

and it returns zero on success; non-zero otherwise. classic Unix behavior β€” zero is the happy ending, anything else means something went sideways 😭


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./fs/ecryptfs/crypto.c, plus this absolutely stacked friend group of man pages (like, the whole ecryptfs extended universe fr fr):


that's the whole page, bestie, you ate that πŸ’– this one shipped out of ./fs/ecryptfs back in October 2026 β€” shoutout to the source and the date, mwah, go read the other thirty man pages now πŸ“βœ¨

πŸ“¦ where this page comes from