libnvme_get_telemetry_log(9)
π libnvme_get_telemetry_log β the libnvme API manual, bestie edition
okay so this is a page from the libnvme API manual and it's all about libnvme_get_telemetry_log(9) β literally the function that goes and gets you a telemetry log. yes, THE telemetry log. the one you asked for. π
β¨ NAME β¨
libnvme_get_telemetry_log β get the specified telemetry log. that's it. that's the whole vibe. grabbing logs, no cap. π¦
πΈ SYNOPSIS πΈ
int libnvme_get_telemetry_log (struct libnvme_transport_handle *hdl ,
bool create , bool ctrl , bool rae , size_t max_data_tx , enum
nvme_telemetry_da da , struct nvme_telemetry_log **log , size_t *size );
look at all those parameters. she's got range. π₯
π ARGUMENTS π
hdlβ the transport handle. your β¨connectionβ¨ to everything, basically.createβ generate a brand new host-initiated telemetry capture. fresh out of the oven, chef's kiss. πctrlβ get the controller-initiated log instead. different log, different energy.raeβ retain asynchronous events. yes ma'am, keep them. πmax_data_txβ set the max data transfer size used when retrieving the telemetry. the ceiling. the limit. the "don't get too comfy" of it all.daβ log page data area. valid values:enum nvme_telemetry_da. that's the whole list, i don't make the rules.logβ on success, gets set to the value of the allocated and retrieved log. allocated AND retrieved. she does both. πsizeβ ptr to the telemetry log size, so it can be returned to you. so thoughtful tbh. π«Ά
π§ DESCRIPTION π§
the total size allocated can be calculated as:
(nvme_telemetry_log da size + 1) * NVME_LOG_TELEM_BLOCK_SIZE
that's the math, bestie. literally just plug it in. β¨π
π RETURN π
0β success! we ate. π- the nvme command status if a response was received β see
enum nvme_status_fieldfor the deets. - a negative error otherwise. π not the negative error.
fr fr, if you're getting a negative error, that's not a vibe check you passed. check your hdl and try again. π«Ά
and that's the page!! brought to you by the libnvme API manual, dated October 2026, version libnvme_get_telemetry_log(9) β okay the footer got a little scrambled in the original, but you get it. mwah. ππ bye bestie, go fetch some telemetry logs!
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms