__sgx_encl_get_backing(9)
π __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 withpage_indexβ enclave page index, aka which page we're talking aboutbackingβ 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 π₯
0on success π₯³-errnootherwise π (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:
reclaimer_writing_to_pcmd(9)sgx_encl_eaug_page(9)sgx_encl_may_map(9)sgx_encl_release(9)sgx_encl_cpumask(9)sgx_encl_alloc_backing(9)sgx_encl_lookup_backing(9)sgx_encl_put_backing(9)sgx_encl_test_and_clear_young(9)sgx_zap_enclave_ptes(9)sgx_alloc_va_page(9)sgx_alloc_va_slot(9)sgx_free_va_slot(9)sgx_va_page_full(9)sgx_encl_free_epc_page(9)
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
- 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