LIBNVME_GET_NEW_HOST_TELEMETRY-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸ’« 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 πŸ‘‘

  • 0 on 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