sgx_encl_release(9)
π sgx_encl_release(9) π
okay bestie, welcome to the Kernel API Manual page for sgx_encl_release(9) β title and manual name folded in right at the top like a little intro, periodt. We're about to destroy an enclave instance, so let's get into it. π
β¨ NAME β¨
sgx_encl_release β destroy an enclave instance.
β¨ SYNOPSIS β¨
void sgx_encl_release (struct kref *ref );
π ARGUMENTS π
refβ this is the address of akrefinsidesgx_encl. That's the whole vibe for this argument. π«Ά
π¦ DESCRIPTION π¦
This one is used together with kref_put. When it runs, it frees all the resources associated with the enclave β and the instance itself too. literally the cleanup era, no cap. π§
π₯ SEE ALSO π₯
- Kernel file
./arch/x86/kernel/cpu/sgx/encl.c reclaimer_writing_to_pcmd(9)sgx_encl_eaug_page(9)sgx_encl_may_map(9)sgx_encl_cpumask(9)__sgx_encl_get_backing(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)
mwah π β source/version: ./arch/x86/kernel/cpu/sgx, dated October 2026, and the page is sgx_encl_release(9). bye bestie, go free those resources π«Άβ¨
π¦ 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