libnvme_get_telemetry_log(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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_field for 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