nvme_init_s...ery_log_page(9)

πŸ“¦ version 3.2, in arch rolling

✨ nvme_init_send_discovery_log_page(9) ✨

okay so bestie, this one lives in the libnvme API manual and it's literally the glow-up tutorial for the Send Discovery Log Page command πŸ’… like it's the setup step, the "get ready with me" of NVMe commands πŸŽ€


🌸 NAME 🌸

nvme_init_send_discovery_log_page β€” initializes the passthru command for the Send Discovery Log Page command. that's the whole vibe πŸ¦‹


⭐ SYNOPSIS ⭐

void nvme_init_send_discovery_log_page (struct libnvme_passthru_cmd *cmd
, __u8 rlps , __u8 sct , __u8 sc , __u8 tlsp , __u8 tlid , __u32 ndws ,
__u64 tlpo , void *data , __u32 len );

she returns void bestie, no return value, she just does the thing ✨


πŸŽ€ ARGUMENTS πŸŽ€

ten args, we love a full cast πŸ‘‘

  • cmd β€” the passthru command you're gonna use. this is the main character, everything gets written into it πŸ’–
  • rlps β€” Requested Log Page Status (RLPS) β€” peep enum nvme_send_discovery_log_page_rlps for the deets πŸ”₯
  • sct β€” Status Code Type (SCT) β€” only gets used if rlps is NVME_SDLP_RLPS_NOT_SUCCESSFUL πŸ‘€
  • sc β€” Status Code (SC) β€” also only used if rlps is NVME_SDLP_RLPS_NOT_SUCCESSFUL πŸ™ˆ
  • tlsp β€” Transferred Log Specific Parameter (TLSP) 🌸
  • tlid β€” Transferred Log Page Identifier (TLID) πŸ¦‹
  • ndws β€” Number of Dwords (NDWS) transferred πŸ“
  • tlpo β€” Transferred Log Page Offset (TLPO) ⭐
  • data β€” the transferred log page data buffer, this is where the actual bytes live πŸ’€
  • len β€” length of data, don't forget her 😭
ngl the sct/sc pairing is giving conditional-usage energy β€” they're only in the group chat when rlps is NVME_SDLP_RLPS_NOT_SUCCESSFUL, periodt πŸ’…

🧚 DESCRIPTION 🧚

Initializes the passthru command buffer for the Send Discovery Log Page command. that's it, that's the whole job β€” she sets up the buffer so the command is ready to slay πŸ”₯

think of it as the pre-game. you hand her the cmd buffer plus all the parameters above, and she fills everything in so the Send Discovery Log Page command is all dressed and ready to go out 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

no SEE ALSO section in this one bestie β€” she's a standalone icon πŸ’œ


alright that's the whole page!! 🫢 this absolute gem comes from the libnvme API manual, and the date stamp on her is October 2026 β€” so yes she's future-dated and she knows it, main character energy fr fr πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from