Skip to content

Commit 914ad2f

Browse files
committed
nvme: Fix typos in header files
A quick run with ispell to fix the obvious typos. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 19fe4dd commit 914ad2f

8 files changed

Lines changed: 60 additions & 60 deletions

File tree

src/nvme/api-types.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ struct nvme_format_nvm_args {
189189
/**
190190
* struct nvme_ns_mgmt_args - Arguments for NVMe Namespace Management command
191191
* @result: NVMe command result
192-
* @ns: Namespace identication descriptors
192+
* @ns: Namespace identification descriptors
193193
* @args_size: Size of &struct nvme_ns_mgmt_args
194194
* @fd: File descriptor of nvme device
195195
* @timeout: Timeout in ms
@@ -338,7 +338,7 @@ struct nvme_security_receive_args {
338338
* @timeout: Timeout in ms
339339
* @nsid: Namespace ID to retrieve LBA status
340340
* @mndw: Maximum number of dwords to return
341-
* @atype: Action type mechanism to determine LBA status desctriptors to
341+
* @atype: Action type mechanism to determine LBA status descriptors to
342342
* return, see &enum nvme_lba_status_atype
343343
* @rl: Range length from slba to perform the action
344344
*/
@@ -358,7 +358,7 @@ struct nvme_get_lba_status_args {
358358
/**
359359
* struct nvme_directive_send_args - Arguments for the NVMe Directive Send command
360360
* @result: If successful, the CQE dword0 value
361-
* @data: Data payload to to be send
361+
* @data: Data payload to be send
362362
* @args_size: Size of &struct nvme_directive_send_args
363363
* @fd: File descriptor of nvme device
364364
* @timeout: Timeout in ms
@@ -386,7 +386,7 @@ struct nvme_directive_send_args {
386386
/**
387387
* struct nvme_directive_recv_args - Arguments for the NVMe Directive Receive command
388388
* @result: If successful, the CQE dword0 value
389-
* @data: Usespace address of data payload
389+
* @data: Userspace address of data payload
390390
* @args_size: Size of &struct nvme_directive_recv_args
391391
* @fd: File descriptor of nvme device
392392
* @timeout: Timeout in ms
@@ -501,7 +501,7 @@ struct nvme_get_property_args {
501501
* @timeout: Timeout in ms
502502
* @ovrpat: Overwrite pattern
503503
* @sanact: Sanitize action, see &enum nvme_sanitize_sanact
504-
* @ause: Set to allow unrestriced sanitize exit
504+
* @ause: Set to allow unrestricted sanitize exit
505505
* @owpass: Overwrite pass count
506506
* @oipbp: Set to overwrite invert pattern between passes
507507
* @nodas: Set to not deallocate blocks after sanitizing
@@ -650,7 +650,7 @@ struct nvme_dsm_args {
650650
* struct nvme_copy_args - Arguments for the NVMe Copy command
651651
* @sdlba: Start destination LBA
652652
* @result: The command completion result from CQE dword0
653-
* @copy: Range descriptior
653+
* @copy: Range description
654654
* @args_size: Size of &struct nvme_copy_args
655655
* @fd: File descriptor of the nvme device
656656
* @timeout: Timeout in ms
@@ -692,7 +692,7 @@ struct nvme_copy_args {
692692
};
693693

694694
/**
695-
* struct nvme_resv_acquire_args - Arguments for the NVMe Reservation Acquire Comand
695+
* struct nvme_resv_acquire_args - Arguments for the NVMe Reservation Acquire Command
696696
* @nrkey: The reservation key to be unregistered from the namespace if
697697
* the action is preempt
698698
* @iekey: Set to ignore the existing key
@@ -754,7 +754,7 @@ struct nvme_resv_register_args {
754754
* @timeout: Timeout in ms
755755
* @nsid: Namespace identifier
756756
* @rtype: The type of reservation to be create, see &enum nvme_resv_rtype
757-
* @rrela: Reservation releast action, see &enum nvme_resv_rrela
757+
* @rrela: Reservation release action, see &enum nvme_resv_rrela
758758
* @iekey: Set to ignore the existing key
759759
*/
760760
struct nvme_resv_release_args {
@@ -778,7 +778,7 @@ struct nvme_resv_release_args {
778778
* @fd: File descriptor of nvme device
779779
* @timeout: Timeout in ms
780780
* @nsid: Namespace identifier
781-
* @len: Number of bytes to request transfered with this command
781+
* @len: Number of bytes to request transferred with this command
782782
* @eds: Request extended Data Structure
783783
*/
784784
struct nvme_resv_report_args {

src/nvme/fabrics.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ char *nvmf_hostid_from_file();
231231
* nvmf_connect_disc_entry() - Connect controller based on the discovery log page entry
232232
* @h: Host to which the controller should be connected
233233
* @e: Discovery log page entry
234-
* @defcfg: Default configurationn to be used for the new controller
234+
* @defcfg: Default configuration to be used for the new controller
235235
* @discover: Set to 'true' if the new controller is a discovery controller
236236
*
237237
* Return: Pointer to the new controller

src/nvme/ioctl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3067,7 +3067,7 @@ int nvme_security_send(struct nvme_security_send_args *args);
30673067

30683068
/**
30693069
* nvme_security_receive() - Security Receive command
3070-
* @args: &struct nvme_security_recevice argument structure
3070+
* @args: &struct nvme_security_receive argument structure
30713071
*
30723072
* Return: The nvme command status if a response was received (see
30733073
* &enum nvme_status_field) or -1 with errno set otherwise.

src/nvme/linux.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @fd: File descriptor of nvme device
2626
* @size: Total size of the firmware image to transfer
2727
* @xfer: Maximum size to send with each partial transfer
28-
* @offset: Starting offset to send with this firmware downlaod
28+
* @offset: Starting offset to send with this firmware download
2929
* @buf: Address of buffer containing all or part of the firmware image.
3030
*
3131
* Return: The nvme command status if a response was received (see
@@ -109,7 +109,7 @@ int nvme_get_new_host_telemetry(int fd, struct nvme_telemetry_log **log,
109109
int nvme_get_log_page(int fd, __u32 xfer_len, struct nvme_get_log_args *args);
110110

111111
/**
112-
* nvme_get_ana_log_len() - Retreive size of the current ANA log
112+
* nvme_get_ana_log_len() - Retrieve size of the current ANA log
113113
* @fd: File descriptor of nvme device
114114
* @analen: Pointer to where the length will be set on success
115115
*
@@ -130,10 +130,10 @@ int nvme_get_ana_log_len(int fd, size_t *analen);
130130
int nvme_get_logical_block_size(int fd, __u32 nsid, int *blksize);
131131

132132
/**
133-
* nvme_get_lba_status_log() - Retreive the LBA Status log page
133+
* nvme_get_lba_status_log() - Retrieve the LBA Status log page
134134
* @fd: File descriptor of the nvme device
135135
* @rae: Retain asynchronous events
136-
* @log: On success, set to the value of the allocated and retreived log.
136+
* @log: On success, set to the value of the allocated and retrieved log.
137137
*
138138
* Return: The nvme command status if a response was received (see
139139
* &enum nvme_status_field) or -1 with errno set otherwise.

src/nvme/mi.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ enum nvme_mi_ror {
147147
* @NVME_MI_RESP_ENC_XFER_REFUSED: Enclosure services transfer refused
148148
* @NVME_MI_RESP_ENC_FUNC_UNSUP: Unsupported enclosure services function
149149
* @NVME_MI_RESP_ENC_SERV_UNAVAIL: Enclosure services unavailable
150-
* @NVME_MI_RESP_ENC_DEGRADED: Noncriticial failure detected by enc. services
150+
* @NVME_MI_RESP_ENC_DEGRADED: Noncritical failure detected by enc. services
151151
* @NVME_MI_RESP_SANITIZE_IN_PROGRESS: Command prohibited during sanitize
152152
*/
153153
enum nvme_mi_resp_status {
@@ -523,7 +523,7 @@ nvme_mi_ctrl_t nvme_mi_next_ctrl(nvme_mi_ep_t ep, nvme_mi_ctrl_t c);
523523
* @netid: MCTP network ID on this system
524524
* @eid: MCTP endpoint ID
525525
*
526-
* Transport-specific endpoint initialisation for MI-connected endpoints. Once
526+
* Transport-specific endpoint initialization for MI-connected endpoints. Once
527527
* an endpoint is created, the rest of the API is transport-independent.
528528
*
529529
* Return: New endpoint object for @netid & @eid, or NULL on failure.
@@ -543,8 +543,8 @@ void nvme_mi_close(nvme_mi_ep_t ep);
543543
/**
544544
* nvme_mi_scan_mctp - look for MCTP-connected NVMe-MI endpoints.
545545
*
546-
* Description: This function queries the system mctp daemon ("mctpd") over
547-
* dbus, to find MCTP endpoints that report support for NVMe-MI over MCTP.
546+
* Description: This function queries the system MCTP daemon ("mctpd") over
547+
* D-Bus, to find MCTP endpoints that report support for NVMe-MI over MCTP.
548548
*
549549
* This requires libvnme-mi to be compiled with D-Bus support; if not, this
550550
* will return NULL.
@@ -577,7 +577,7 @@ int nvme_mi_scan_ep(nvme_mi_ep_t ep, bool force_rescan);
577577
/**
578578
* nvme_mi_init_ctrl() - initialise a NVMe controller.
579579
* @ep: Endpoint to create under
580-
* @ctrl_id: ID of controller to initialise.
580+
* @ctrl_id: ID of controller to initialize.
581581
*
582582
* Create a connection to a controller behind the endpoint specified in @ep.
583583
* Controller IDs may be queried from the endpoint through
@@ -706,7 +706,7 @@ int nvme_mi_mi_subsystem_health_status_poll(nvme_mi_ep_t ep, bool clear,
706706
* as the LSB of @dw0. Other @dw0 and @dw1 data is configuration-identifier
707707
* specific.
708708
*
709-
* On a sucessful Configuration Get, the @nmresp pointer will be populated with
709+
* On a successful Configuration Get, the @nmresp pointer will be populated with
710710
* the bytes from the 3-byte NMRESP field, converted to native endian.
711711
*
712712
* See &enum nvme_mi_config_id for identifiers.
@@ -733,7 +733,7 @@ int nvme_mi_mi_config_get(nvme_mi_ep_t ep, __u32 dw0, __u32 dw1,
733733
int nvme_mi_mi_config_set(nvme_mi_ep_t ep, __u32 dw0, __u32 dw1);
734734

735735
/**
736-
* nvme_mi_mi_config_get_smbus_freq - get configuraton: SMBus port frequency
736+
* nvme_mi_mi_config_get_smbus_freq - get configuration: SMBus port frequency
737737
* @ep: endpoint for MI communication
738738
* @port: port ID to query
739739
* @freq: output value for current frequency configuration
@@ -759,7 +759,7 @@ static inline int nvme_mi_mi_config_get_smbus_freq(nvme_mi_ep_t ep, __u8 port,
759759
}
760760

761761
/**
762-
* nvme_mi_mi_config_set_smbus_freq - set configuraton: SMBus port frequency
762+
* nvme_mi_mi_config_set_smbus_freq - set configuration: SMBus port frequency
763763
* @ep: endpoint for MI communication
764764
* @port: port ID to set
765765
* @freq: new frequency configuration
@@ -805,7 +805,7 @@ static inline int nvme_mi_mi_config_set_health_status_change(nvme_mi_ep_t ep,
805805
}
806806

807807
/**
808-
* nvme_mi_mi_config_get_mctp_mtu - get configuraton: MCTP MTU
808+
* nvme_mi_mi_config_get_mctp_mtu - get configuration: MCTP MTU
809809
* @ep: endpoint for MI communication
810810
* @port: port ID to query
811811
* @mtu: output value for current MCTP MTU configuration
@@ -836,7 +836,7 @@ static inline int nvme_mi_mi_config_get_mctp_mtu(nvme_mi_ep_t ep, __u8 port,
836836
}
837837

838838
/**
839-
* nvme_mi_mi_config_set_mctp_mtu - set configuraton: MCTP MTU
839+
* nvme_mi_mi_config_set_mctp_mtu - set configuration: MCTP MTU
840840
* @ep: endpoint for MI communication
841841
* @port: port ID to set
842842
* @mtu: new MTU configuration
@@ -913,7 +913,7 @@ int nvme_mi_admin_xfer(nvme_mi_ctrl_t ctrl,
913913
* Unless you're performing a vendor-unique identify command, You'll probably
914914
* want to use one of the identify helpers (nvme_mi_admin_identify,
915915
* nvme_mi_admin_identify_cns_nsid, or nvme_mi_admin_identify_<type>) instead
916-
* of this. If the type of your identify command is standardised but not
916+
* of this. If the type of your identify command is standardized but not
917917
* yet supported by libnvme-mi, please contact the maintainers.
918918
*
919919
* Return: 0 on success, non-zero on failure
@@ -995,7 +995,7 @@ static inline int nvme_mi_admin_identify_cns_nsid(nvme_mi_ctrl_t ctrl,
995995
*
996996
* Will return an error if the length of the response data (from the
997997
* controller) is not a full &NVME_IDENTIFY_DATA_SIZE, so @id will be
998-
* be fully populated on success.
998+
* fully populated on success.
999999
*
10001000
* Return: 0 on success, non-zero on failure
10011001
*
@@ -1020,7 +1020,7 @@ static inline int nvme_mi_admin_identify_ctrl(nvme_mi_ctrl_t ctrl,
10201020
*
10211021
* Will return an error if the length of the response data (from the
10221022
* controller) is not a full &NVME_IDENTIFY_DATA_SIZE, so @id will be
1023-
* be fully populated on success.
1023+
* fully populated on success.
10241024
*
10251025
* Return: 0 on success, non-zero on failure
10261026
*

src/nvme/tree.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ nvme_subsystem_t nvme_next_subsystem(nvme_host_t h, nvme_subsystem_t s);
142142
* @subsysnqn: Subsystem NQN
143143
*
144144
* Lookup a &nvme_subsystem_t object in @h base on @name (if present)
145-
* and @subsystemnqn or create one if not found.
145+
* and @subsysnqn or create one if not found.
146146
*
147-
* Return: nvme_subsystme_t object
147+
* Return: nvme_subsystem_t object
148148
*/
149149
nvme_subsystem_t nvme_lookup_subsystem(struct nvme_host *h,
150150
const char *name,
@@ -443,7 +443,7 @@ nvme_ns_t nvme_subsystem_next_ns(nvme_subsystem_t s, nvme_ns_t n);
443443
p = nvme_namespace_next_path(n, p))
444444

445445
/**
446-
* nvme_ns_get_fd() - Get associated filedescriptor
446+
* nvme_ns_get_fd() - Get associated file descriptor
447447
* @n: Namespace instance
448448
*
449449
* Return: File descriptor associated with @n or -1
@@ -483,10 +483,10 @@ int nvme_ns_get_meta_size(nvme_ns_t n);
483483
uint64_t nvme_ns_get_lba_count(nvme_ns_t n);
484484

485485
/**
486-
* nvme_ns_get_lba_util() - LBA utilisation of a namespace
486+
* nvme_ns_get_lba_util() - LBA utilization of a namespace
487487
* @n: Namespace instance
488488
*
489-
* Return: LBA utilisation of @n
489+
* Return: LBA utilization of @n
490490
*/
491491
uint64_t nvme_ns_get_lba_util(nvme_ns_t n);
492492

@@ -805,7 +805,7 @@ const char *nvme_ctrl_get_queue_count(nvme_ctrl_t c);
805805

806806
/**
807807
* nvme_ctrl_get_serial() - Serial number of a controller
808-
* @c: Conroller instance
808+
* @c: Controller instance
809809
*
810810
* Return: Serial number string of @c
811811
*/
@@ -1019,7 +1019,7 @@ void nvme_unlink_ctrl(struct nvme_ctrl *c);
10191019
* nvme_subsystem_get_nqn() - Retrieve NQN from subsystem
10201020
* @s: nvme_subsystem_t object
10211021
*
1022-
* Return: NQN of systemstem
1022+
* Return: NQN of subsystem
10231023
*/
10241024
const char *nvme_subsystem_get_nqn(nvme_subsystem_t s);
10251025

0 commit comments

Comments
 (0)