nvme_get_features_kato(2)

πŸ’– nvme_get_features_kato(2) πŸ’–

okay bestie, we're in the libnvme API manual and this one is chef's kiss β€” it's all about getting the keep alive timeout feature from your NVMe device. yes, the thing that keeps the vibes alive between you and your drive. 🫢


✨ NAME ✨

nvme_get_features_kato β€” get the keep alive timeout feature, periodt.


🌸 SYNOPSIS 🌸

int nvme_get_features_kato (int fd , enum nvme_get_features_sel sel ,
       __u32 *result );

πŸŽ€ ARGUMENTS πŸŽ€

  • fd β€” the file descriptor of your nvme device. like, your little VIP pass to the drive. πŸ’…
  • sel β€” which type of attribute you wanna be returned to you, bestie. check enum nvme_get_features_sel for the deets. it's giving "choose your own adventure". 🌈
  • result β€” the command completion result from CQE dword0. yes, dword0, exactly, don't come for me, that's what it is. πŸ’€

⭐ RETURN ⭐

the nvme command status if a response was received (peep enum nvme_status_field for that whole situation), or -1 with errno set otherwise. so either you got the tea, or you got -1 and a lil error code to go with it. 😭

no cap: if you see the -1, go check that errno, she's trying to tell you something.

and that's the whole page, mwah πŸ’‹

this was the libnvme API manual, dated July 2026, and yes the page title really does say nvme_get_features_kato twice because it's extra like that. slay. πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from