diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2017-08-28 11:33:20 -0400 |
|---|---|---|
| committer | Dan Williams <dan.j.williams@intel.com> | 2017-08-28 11:33:20 -0400 |
| commit | 7a14724f54bf9889fcb1a9f1d4aa4e1d2e969d93 (patch) | |
| tree | aac70382dbf9ddb577a2143d4adbcc0236228272 /include/uapi/linux | |
| parent | cc4a41fe5541a73019a864883297bd5043aa6d98 (diff) | |
libnvdimm: clean up command definitions
Remove the command payloads that do not have an associated libnvdimm
ioctl. I.e. remove the payloads that would only ever be carried in the
ND_CMD_CALL envelope. This prevents userspace from growing unnecessary
dependencies on this kernel header when userspace already has everything
it needs to craft and send these commands.
Cc: Jerry Hoemann <jerry.hoemann@hpe.com>
Reported-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/ndctl.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux/ndctl.h index 6d3c54264d8e..3f03567631cb 100644 --- a/include/uapi/linux/ndctl.h +++ b/include/uapi/linux/ndctl.h | |||
| @@ -145,43 +145,6 @@ struct nd_cmd_clear_error { | |||
| 145 | __u64 cleared; | 145 | __u64 cleared; |
| 146 | } __packed; | 146 | } __packed; |
| 147 | 147 | ||
| 148 | struct nd_cmd_trans_spa { | ||
| 149 | __u64 spa; | ||
| 150 | __u32 status; | ||
| 151 | __u8 flags; | ||
| 152 | __u8 _reserved[3]; | ||
| 153 | __u64 trans_length; | ||
| 154 | __u32 num_nvdimms; | ||
| 155 | struct nd_nvdimm_device { | ||
| 156 | __u32 nfit_device_handle; | ||
| 157 | __u32 _reserved; | ||
| 158 | __u64 dpa; | ||
| 159 | } __packed devices[0]; | ||
| 160 | |||
| 161 | } __packed; | ||
| 162 | |||
| 163 | struct nd_cmd_ars_err_inj { | ||
| 164 | __u64 err_inj_spa_range_base; | ||
| 165 | __u64 err_inj_spa_range_length; | ||
| 166 | __u8 err_inj_options; | ||
| 167 | __u32 status; | ||
| 168 | } __packed; | ||
| 169 | |||
| 170 | struct nd_cmd_ars_err_inj_clr { | ||
| 171 | __u64 err_inj_clr_spa_range_base; | ||
| 172 | __u64 err_inj_clr_spa_range_length; | ||
| 173 | __u32 status; | ||
| 174 | } __packed; | ||
| 175 | |||
| 176 | struct nd_cmd_ars_err_inj_stat { | ||
| 177 | __u32 status; | ||
| 178 | __u32 inj_err_rec_count; | ||
| 179 | struct nd_error_stat_query_record { | ||
| 180 | __u64 err_inj_stat_spa_range_base; | ||
| 181 | __u64 err_inj_stat_spa_range_length; | ||
| 182 | } __packed record[0]; | ||
| 183 | } __packed; | ||
| 184 | |||
| 185 | enum { | 148 | enum { |
| 186 | ND_CMD_IMPLEMENTED = 0, | 149 | ND_CMD_IMPLEMENTED = 0, |
| 187 | 150 | ||
