STRUCT NE_ENCLAVE_START_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct ne_enclave_start_info β€” the little setup-info struct you need for enclave start, and it's in / out bestie, meaning it's both an input AND an output, she's versatile πŸ’…

okay so real talk, this page lives in the Kernel API Manual, section 9, and it's about one tiny struct that carries the tea the hypervisor needs before your enclave can ~start~ ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

struct ne_enclave_start_info {
    __u64 flags;
    __u64 enclave_cid;
 };

that's it. two fields. lowkey iconic for how much she does with so little πŸŽ€


🌸 Members 🌸

  • flags β€” the flags your enclave starts with (think debug mode and friends) β€” this one is (in) only, so you're the one filling it out 🫢
  • enclave_cid β€” the Context ID (CID) for the enclave's vsock device. and here's the cute part: if you pass in 0 as input, the CID gets autogenerated by the hypervisor and handed right back to you as output by the driver. she's (in / out) β€” you give her something, she maybe gives you something better ✨
btw the whole struct is described as (in / out) up in the NAME section, so don't let the input-only flags field confuse you β€” the struct as a whole does the round trip πŸ’–

πŸ’… SEE ALSO πŸ’…

the whole friend group, fr fr β€” go read these next:


and that's the whole page, bestie 🧚 no cap, every field and every cross-reference accounted for. this one was sourced from ./include/uapi/linux and dated October 2026 β€” go off, you're basically a kernel dev now πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from