* [PATCH] nvme-cli: add kernel-doc comment for struct telemetry_log_page_hdr
@ 2019-05-16 16:40 Akinobu Mita
2019-05-16 16:45 ` Keith Busch
0 siblings, 1 reply; 2+ messages in thread
From: Akinobu Mita @ 2019-05-16 16:40 UTC (permalink / raw)
This adds the kernel-doc data structure comment for struct
telemetry_log_page_hdr.
This also replaces spaces with tabs to align the structure fields.
Cc: Keith Busch <keith.busch at intel.com>
Cc: Chaitanya Kulkarni <Chaitanya.Kulkarni at wdc.com>
Cc: Bart Van Assche <bvanassche at acm.org>
Suggested-by: Bart Van Assche <bvanassche at acm.org>
Signed-off-by: Akinobu Mita <akinobu.mita at gmail.com>
---
linux/nvme.h | 37 ++++++++++++++++++++++++++-----------
1 file changed, 26 insertions(+), 11 deletions(-)
diff --git a/linux/nvme.h b/linux/nvme.h
index 2c840b9..cac4d19 100644
--- a/linux/nvme.h
+++ b/linux/nvme.h
@@ -426,18 +426,33 @@ struct nvme_id_nvmset {
struct nvme_nvmset_attr_entry ent[NVME_MAX_NVMSET];
};
+/**
+ * struct nvme_telemetry_log_page_hdr - structure for telemetry log page
+ * @lpi: Log page identifier
+ * @iee_oui: IEEE OUI Identifier
+ * @dalb1: Data area 1 last block
+ * @dalb2: Data area 2 last block
+ * @dalb3: Data area 3 last block
+ * @ctrlavail: Controller initiated data available
+ * @ctrldgn: Controller initiated telemetry Data Generation Number
+ * @rsnident: Reason Identifier
+ * @telemetry_dataarea: Contains telemetry data block
+ *
+ * This structure can be used for both telemetry host-initiated log page
+ * and controller-initiated log page.
+ */
struct nvme_telemetry_log_page_hdr {
- __u8 lpi; /* Log page identifier */
- __u8 rsvd[4];
- __u8 iee_oui[3];
- __le16 dalb1; /* Data area 1 last block */
- __le16 dalb2; /* Data area 2 last block */
- __le16 dalb3; /* Data area 3 last block */
- __u8 rsvd1[368];
- __u8 ctrlavail; /* Controller initiated data avail?*/
- __u8 ctrldgn; /* Controller initiated telemetry Data Gen # */
- __u8 rsnident[128];
- __u8 telemetry_dataarea[0];
+ __u8 lpi;
+ __u8 rsvd[4];
+ __u8 iee_oui[3];
+ __le16 dalb1;
+ __le16 dalb2;
+ __le16 dalb3;
+ __u8 rsvd1[368];
+ __u8 ctrlavail;
+ __u8 ctrldgn;
+ __u8 rsnident[128];
+ __u8 telemetry_dataarea[0];
};
struct nvme_endurance_group_log {
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] nvme-cli: add kernel-doc comment for struct telemetry_log_page_hdr
2019-05-16 16:40 [PATCH] nvme-cli: add kernel-doc comment for struct telemetry_log_page_hdr Akinobu Mita
@ 2019-05-16 16:45 ` Keith Busch
0 siblings, 0 replies; 2+ messages in thread
From: Keith Busch @ 2019-05-16 16:45 UTC (permalink / raw)
On Fri, May 17, 2019@01:40:28AM +0900, Akinobu Mita wrote:
> This adds the kernel-doc data structure comment for struct
> telemetry_log_page_hdr.
>
> This also replaces spaces with tabs to align the structure fields.
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-05-16 16:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-16 16:40 [PATCH] nvme-cli: add kernel-doc comment for struct telemetry_log_page_hdr Akinobu Mita
2019-05-16 16:45 ` Keith Busch
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.