LIBNVME_GET_NEW_HOST_TELEMETRY-LIBNVME3(2)
π« libnvme_get_...st_telemetry(9) β like, the libnvme API manual, bestie π«
okay so bestie, listen β this is libnvme_get_new_host_telemetry, and it's giving "grab me the fresh host telemetry log" energy. no cap, it's a whole function. the manpage manual name is libnvme API manual (iykyk) and it lives in section 9 of the libnvme API manuals. let's go π«Ά
β¨ NAME β¨
libnvme_get_new_host_telemetry β Get new host telemetry log
like literally that's it. that's the whole vibe. it gets you the new host telemetry log. π
π¦ SYNOPSIS π¦
int libnvme_get_new_host_telemetry (struct libnvme_transport_handle *hdl
, struct nvme_telemetry_log **log , enum nvme_telemetry_da da , size_t
*size );
four args, one int return. iconic. π
πΈ ARGUMENTS πΈ
hdlβ Transport handle. it's your transport handle, bestie. the whole connection situation. hold it gently. πlogβ On success, set to the value of the allocated and retrieved log. so like, the function allocates it AND retrieves it AND hands it to you through this pointer. main character behavior honestly. β¨daβ Log page data area. valid values:enum nvme_telemetry_da. that's the data area you're asking for β pick from that enum, don't freestyle it. πsizeβ Ptr to the telemetry log size, so it can be returned. yes girl, it's a pointer, because the size comes BACK to you. you give it a place to write, it writes the size there. periodt. π
π₯ DESCRIPTION π₯
so the total size allocated can be calculated as:
(nvme_telemetry_log da size + 1) * NVME_LOG_TELEM_BLOCK_SIZE
that's the formula, fr fr. (nvme_telemetry_log da size + 1) * NVME_LOG_TELEM_BLOCK_SIZE. the way that it's just da size plus one, times the block size β ate. π₯
it allocates, it retrieves, it tells you the size. no notes. β
π RETURN π
0on success β slay π- the nvme command status if a response was received β see
enum nvme_status_field - a negative error otherwise β π
so like: zero is good, positive-ish command status means the command actually came back with something (check that enum), and negative means it did not go well. ngl, keep an eye on it. π
π SEE ALSO π
the manpage doesn't list any SEE ALSO refs, bestie β so there's nothing to link here, and I'm not gonna invent one. π§
and that's the whole page! π this lil beauty is from the libnvme API manual, dated October 2026, and the footer thingy goes libnvme_get_...st_telemetry(9) β see you in the group chat, mwah ππ«Άπ
π¦ 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