include/uapi/linux/ndctl.h
Source file repositories/reference/linux-study-clean/include/uapi/linux/ndctl.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/linux/ndctl.h- Extension
.h- Size
- 6651 bytes
- Lines
- 256
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.h
Detected Declarations
struct nd_cmd_dimm_flagsstruct nd_cmd_get_config_sizestruct nd_cmd_get_config_data_hdrstruct nd_cmd_set_config_hdrstruct nd_cmd_vendor_hdrstruct nd_cmd_vendor_tailstruct nd_cmd_ars_capstruct nd_cmd_ars_startstruct nd_cmd_ars_statusstruct nd_ars_recordstruct nd_cmd_clear_errorstruct nd_cmd_pkgenum nd_driver_flagsenum ars_masks
Annotated Snippet
struct nd_cmd_dimm_flags {
__u32 status;
__u32 flags;
} __packed;
struct nd_cmd_get_config_size {
__u32 status;
__u32 config_size;
__u32 max_xfer;
} __packed;
struct nd_cmd_get_config_data_hdr {
__u32 in_offset;
__u32 in_length;
__u32 status;
__u8 out_buf[];
} __packed;
struct nd_cmd_set_config_hdr {
__u32 in_offset;
__u32 in_length;
__u8 in_buf[];
} __packed;
struct nd_cmd_vendor_hdr {
__u32 opcode;
__u32 in_length;
__u8 in_buf[];
} __packed;
struct nd_cmd_vendor_tail {
__u32 status;
__u32 out_length;
__u8 out_buf[];
} __packed;
struct nd_cmd_ars_cap {
__u64 address;
__u64 length;
__u32 status;
__u32 max_ars_out;
__u32 clear_err_unit;
__u16 flags;
__u16 reserved;
} __packed;
struct nd_cmd_ars_start {
__u64 address;
__u64 length;
__u16 type;
__u8 flags;
__u8 reserved[5];
__u32 status;
__u32 scrub_time;
} __packed;
struct nd_cmd_ars_status {
__u32 status;
__u32 out_length;
__u64 address;
__u64 length;
__u64 restart_address;
__u64 restart_length;
__u16 type;
__u16 flags;
__u32 num_records;
struct nd_ars_record {
__u32 handle;
__u32 reserved;
__u64 err_address;
__u64 length;
} __packed records[];
} __packed;
struct nd_cmd_clear_error {
__u64 address;
__u64 length;
__u32 status;
__u8 reserved[4];
__u64 cleared;
} __packed;
enum {
ND_CMD_IMPLEMENTED = 0,
/* bus commands */
ND_CMD_ARS_CAP = 1,
ND_CMD_ARS_START = 2,
ND_CMD_ARS_STATUS = 3,
ND_CMD_CLEAR_ERROR = 4,
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct nd_cmd_dimm_flags`, `struct nd_cmd_get_config_size`, `struct nd_cmd_get_config_data_hdr`, `struct nd_cmd_set_config_hdr`, `struct nd_cmd_vendor_hdr`, `struct nd_cmd_vendor_tail`, `struct nd_cmd_ars_cap`, `struct nd_cmd_ars_start`, `struct nd_cmd_ars_status`, `struct nd_ars_record`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
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.