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. checkenum nvme_get_features_selfor 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 thaterrno, 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
- ubuntu stonking: libnvme-dev 1.16.2-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms