NVME_GET_FEATURES_WRITE_ATOMIC(2)
β¨ nvme_get_features_write_atomic(2) β¨
okay bestie, welcome to the libnvme API manual, section 2 π this one's called nvme_get_features_write_atomic β and yeah, the header squishes the name down to nvme_get_fea...write_atomic(2) bc terminals are dramatic like that, but we know her full name and we're obsessed π«Ά
πΈ NAME πΈ
nvme_get_features_write_atomic β get the write atomic feature, that's it, that's the whole vibe β¨
π SYNOPSIS π
int nvme_get_features_write_atomic (int fd , enum nvme_get_features_sel
sel , __u32 *result );
(it's giving "three args and a dream" π )
π¦ ARGUMENTS π¦
fdβ the file descriptor of your nvme device. yes, the whole device. main character energy, no cap πselβ picks which type of attribute you want back. it's anenum nvme_get_features_sel, so go look at that enum, iykyk πresultβ a__u32 *that catches the command completion result from CQE dword0. literally where the answer lands, periodt π
β RETURN β
if a response came back, you get the nvme command status (check enum nvme_status_field for the tea π). otherwise it's -1 with errno set, so check that errno bestie, don't just stand there π
ngl, nothing here is dangerous β it's a getter β but please. check the return value. your future self will thank you π
and that's the page!! π this came from the libnvme API manual, dated July 2026 (the footer kept whispering nvme_get_fea...write_atomic(2) at us the whole time, iconic honestly). go forth and fetch that feature, you're doing amazing sweetie π§β¨π
π¦ 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