STRUCT SLOT_ADD_MEM_REQ(9)
πΈ struct slot_add_mem_req(9) πΈ
okay so bestie, welcome to the Kernel API Manual β yes, the actual manual name, we're being official today π
β and today's main character is struct slot_add_mem_req. It's giving "small struct, big job" energy, ngl.
β¨ NAME β¨
struct slot_add_mem_req β the SLOT_ADD_MEM request. that's it, that's the whole name, periodt. π
π¦ SYNOPSIS π¦
here's the whole vibe, literally copy-pasted from the source of truth so you can't mess it up:
struct slot_add_mem_req {
u64 slot_uid;
u64 paddr;
u64 size;
};
three little u64s, all in a row, iconic behavior honestly π₯
π Members π
let's meet the cast, one by one π«Ά
slot_uidβ the slot's unique id, mapped to the slot you're adding that memory region to. it's the "which slot tho" field, iykyk.paddrβ the physical address of the memory region you're adding to the slot. not virtual, not vibes β physical πsizeβ the memory size, in bytes, of the memory region going into the slot. bytes, bestie, always bytes.
π SEE ALSO π
the friend group, the whole squad, the extended universe π β all of these are (9) man pages and all of these are real, don't @ me:
- 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_start_req(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_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, that's a lot of references and every single one is staying, no cap π
nerd note: this whole page lives under ./drivers/virt/nitro_enclaves, and it's dated October 2026. yes, the future. we're early. π§
and that's the page, bestie β go add that memory, slay, and remember: slot_uid, paddr, size, in that order. mwah πβ¨
π¦ 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