STRUCT ENCLAVE_START_REQ(9)
π struct enclave_start_req(9) π
okay bestie, so this is a page straight out of the Kernel API Manual β it's all about struct enclave_start_req, and ngl it's giving "the little form you fill out to wake an enclave up" energy. π«Ά
β¨ NAME β¨
struct enclave_start_req β the ENCLAVE_START request. periodt, that's the whole vibe. π
πΈ SYNOPSIS πΈ
here's the actual shape of it, copy it exactly bestie:
struct enclave_start_req {
u64 slot_uid;
u64 enclave_cid;
u64 flags;
};
three fields, all u64, no cap. π
π¦ Members π¦
slot_uidβ the slot's unique id, mapped to the enclave you're starting. literally the "which one" field. π₯enclave_cidβ the Context ID (CID) for the enclave's vsock device. and here's the cute part: if it's0, the CID gets autogenerated for you. no thoughts, it just happens. β¨flagsβ the flags the enclave starts with (e.g. debug mode). yes bestie, debug mode is a flag, go off. π
π SEE ALSO π
okay this is the long part and i'm not skipping a single one, because every link here ate and left no crumbs. all of these live in the kernel file ./drivers/virt/nitro_enclaves/ne_pci_dev.h π:
- Nitro Enclaves (NE) PCI device(9)
PCI_DEVICE_ID_NE(9)PCI_BAR_NE(9)- Device registers in the NE PCI device MMIO BAR(9)
NE_ENABLE(9)NE_VERSION(9)NE_COMMAND(9)NE_EVTCNT(9)NE_SEND_DATA(9)NE_RECV_DATA(9)- Device MMIO buffer sizes(9)
NE_SEND_DATA_SIZE(9)NE_RECV_DATA_SIZE(9)- MSI-X interrupt vectors(9)
NE_VEC_REPLY(9)NE_VEC_EVENT(9)- enum
ne_pci_dev_cmd_type(9) - Device commands - payload structure for requests and replies.(9)
struct enclave_get_slot_req(9)struct enclave_stop_req(9)struct slot_alloc_req(9)struct slot_free_req(9)struct slot_add_mem_req(9)struct slot_add_vcpu_req(9)struct slot_count_req(9)struct next_slot_req(9)struct slot_info_req(9)struct slot_add_bulk_vcpus_req(9)struct ne_pci_dev_cmd_reply(9)struct ne_pci_dev(9)ne_do_request(9)
like, the whole friend group showed up. iconique. π
and that's the page!! mwah π this lil beauty ships from ./drivers/virt/nitro_enclaves and it's dated October 2026 β so yeah, future-coded bestie, mark your calendar ποΈβ¨π
π¦ 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