__sgx_encl_get_backing(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– __sgx_encl_get_backing β€” the Kernel API Manual page, bestie edition πŸ’–

okay so this is a kernel API manual page, section 9 (that's the kernel API girlies ✨), and it's literally all about pinning down backing storage. yes ma'am, we are in ./arch/x86/kernel/cpu/sgx territory and it's giving cryptography-core realness 🧚

✨ NAME ✨

__sgx_encl_get_backing β€” pin the backing storage πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

int __sgx_encl_get_backing (struct sgx_encl *encl , unsigned long
page_index , struct sgx_backing *backing );

like, that's the whole signature. int going in, three args, we love a consistent icon πŸ‘‘

🌸 ARGUMENTS 🌸

  • encl β€” an enclave pointer 🫢 this is the enclave you're working with
  • page_index β€” enclave page index, aka which page we're talking about
  • backing β€” data for accessing backing storage for the page πŸ’… the whole lil' bundle you need to get at that backing storage

πŸŽ€ DESCRIPTION πŸŽ€

so what does it actually do?? it pins the backing storage pages β€” and bestie, those pages are for storing the encrypted contents and the Paging Crypto MetaData (PCMD) of an enclave page. that's it. that's the vibe check. pin the pages, store the encrypted stuff and the PCMD, slay ✨

πŸ”₯ RETURN πŸ”₯

  • 0 on success πŸ₯³
  • -errno otherwise 😭 (yes it's giving error-code energy, no cap)

πŸ’œ SEE ALSO πŸ’œ

first up, the kernel file itself, no notes:

  • Kernel file ./arch/x86/kernel/cpu/sgx/encl.c

and then the whole friend group 😌 all of these are cross-referenced, bestie, every single one:

like, that's the whole squad, iykyk 🌈


and that's the page!! πŸ“ source directory is ./arch/x86/kernel/cpu/sgx, dated October 2026, and yes it's from the Kernel API Manual β€” __sgx_encl_get_backing(9), periodt πŸ’…πŸ‘‘

πŸ“¦ where this page comes from