include/uapi/linux/nitro_enclaves.h
Source file repositories/reference/linux-study-clean/include/uapi/linux/nitro_enclaves.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/linux/nitro_enclaves.h- Extension
.h- Size
- 13176 bytes
- Lines
- 360
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Touches user memory; correctness depends on fault-safe copying and privilege boundary handling.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct ne_image_load_infostruct ne_user_memory_regionstruct ne_enclave_start_info
Annotated Snippet
struct ne_image_load_info {
__u64 flags;
__u64 memory_offset;
};
/**
* DOC: User memory region flags
*/
/**
* NE_DEFAULT_MEMORY_REGION - Memory region for enclave general usage.
*/
#define NE_DEFAULT_MEMORY_REGION (0x00)
#define NE_MEMORY_REGION_MAX_FLAG_VAL (0x01)
/**
* struct ne_user_memory_region - Memory region to be set for an enclave (in).
* @flags: Flags to determine the usage for the memory region (in).
* @memory_size: The size, in bytes, of the memory region to be set for
* an enclave (in).
* @userspace_addr: The start address of the userspace allocated memory of
* the memory region to set for an enclave (in).
*/
struct ne_user_memory_region {
__u64 flags;
__u64 memory_size;
__u64 userspace_addr;
};
/**
* DOC: Enclave start info flags
*/
/**
* NE_ENCLAVE_PRODUCTION_MODE - Start enclave in production mode.
*/
#define NE_ENCLAVE_PRODUCTION_MODE (0x00)
/**
* NE_ENCLAVE_DEBUG_MODE - Start enclave in debug mode.
*/
#define NE_ENCLAVE_DEBUG_MODE (0x01)
#define NE_ENCLAVE_START_MAX_FLAG_VAL (0x02)
/**
* struct ne_enclave_start_info - Setup info necessary for enclave start (in / out).
* @flags: Flags for the enclave to start with (e.g. debug mode) (in).
* @enclave_cid: Context ID (CID) for the enclave vsock device. If 0 as
* input, the CID is autogenerated by the hypervisor and
* returned back as output by the driver (in / out).
*/
struct ne_enclave_start_info {
__u64 flags;
__u64 enclave_cid;
};
#endif /* _UAPI_LINUX_NITRO_ENCLAVES_H_ */
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct ne_image_load_info`, `struct ne_user_memory_region`, `struct ne_enclave_start_info`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
- This snippet crosses the user/kernel memory boundary; validate fault handling and access checks before translating the pattern.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.