NVME_MI_ADMIN_GET_LOG_TELEMETRY_HOST(2)
π nvme_mi_admin_get_log_telemetry_host π
okay bestie, welcome to the libnvme API manual β¨ this one lives in section 2 (that's the library calls girlies, not the shell commands) and it's giving "grab me that telemetry log over NVMe-MI" energy. let's get into it π¦
β¨ NAME β¨
nvme_mi_admin_get_log_telemetry_host β Get Telemetry Host-Initiated log page π
πΈ SYNOPSIS πΈ
int nvme_mi_admin_get_log_telemetry_host (nvme_mi_ctrl_t ctrl , __u64 offset , __u32 len , void *log );
π ARGUMENTS π
ctrlβ the Controller you wanna query, like your main character of the moment πoffsetβ Offset into the telemetry data, aka how far in you're diving πββοΈlenβ Length of provided user buffer to hold the log data, in bytes. this is your buffer's whole personality, size-wise πlogβ User address for log page data, the lil spot where the goods get dropped off π
π DESCRIPTION π
So basically it retrieves the Telemetry Host-Initiated log page at the requested offset, using the previously existing capture. lowkey it's just going back for the data that's already been captured, not making a fresh one β fr fr, "previously existing" is the whole vibe here π
β RETURN β
It gives you the nvme command status if a response was received (peep enum nvme_status_field for the deets) or -1 with errno set otherwise. so if you get -1, check your errno bestie, it's telling you what went wrong π
no cap, always peek the return value. the status and the errno are not the same thing and the manpage said what it said π
okay that's the whole thing, you ate it π«Ά libnvme API manual, section 2, dated July 2026 β mwah, go query something iconic πβ¨
π¦ where this page comes from
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms