NVME_GET_NEW_HOST_TELEMETRY(2)

πŸ’– nvme_get_new_host_telemetry(2) πŸ’–

okay bestie, welcome to the libnvme API manual ✨ this one is nvme_get_new_host_telemetry and it's literally the ~new~ host telemetry log grabber πŸ¦‹


🌸 NAME 🌸

nvme_get_new_host_telemetry β€” Get new host telemetry log πŸ‘‘


✨ SYNOPSIS ✨

int nvme_get_new_host_telemetry (int fd , struct nvme_telemetry_log
**log , enum nvme_telemetry_da da , size_t *size );

πŸŽ€ ARGUMENTS πŸŽ€

  • fd β€” bestie this is the file descriptor of the nvme device, the whole entry point, no cap πŸ”‘
  • log β€” on success, this gets set to the value of the allocated and retrieved log. it's giving "here's your log, queen" πŸ’…
  • da β€” the log page data area. valid values: enum nvme_telemetry_da 🌈
  • size β€” ptr to the telemetry log size, so it can be returned 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so the way the math works: 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, don't come for me, it's just what it is 🧚


πŸ”₯ RETURN πŸ”₯

it returns the nvme command status if a response was received (see enum nvme_status_field) 🌟 or -1 with errno set otherwise 😭


and that's the whole page bestie, you ate that πŸ’– this was the libnvme API manual and we're rolling with July 2026 energy β€” go forth and get those new host telemetry logs, periodt βœ¨πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from