NVME_GET_FEATURES_HOST_MEM_BUF(2)
π nvme_get_features_host_mem_buf(2) π
okay bestie, welcome to the libnvme API manual β¨ this one's a lil function called nvme_get_features_host_mem_buf, and it's here to grab the host memory buffer feature for you. she's short, she's deprecated, she's still iconic π
β¨ NAME β¨
nvme_get_features_host_mem_buf β Get host memory buffer feature π¦
β¨ SYNOPSIS β¨
int nvme_get_features_host_mem_buf (int fd , enum nvme_get_features_sel
sel , __u32 *result );
like. that's the whole signature. three lil things go in, an int comes out π
β¨ ARGUMENTS β¨
fdβ the File descriptor of nvme device. that's your lil handle to the device, she's your main character πselβ Select which type of attribute to return, seeenum nvme_get_features_sel. so basically which flavor of attribute you want back, and the enum holds all the menu options πresultβ The command completion result from CQE dword0. yep, the answer lands in here, straight out of CQE dword0, no cap β
β¨ DESCRIPTION β¨
okay so. deep breath π«Ά
Deprecated: doesn't fetch the Host Memory Buffer Attributes data structure. Use nvme_get_features_host_mem_buf2 instead.
that's the tea β she's deprecated!! she does not fetch the Host Memory Buffer Attributes data structure, which is kind of the whole point of the family, so likeβ¦ yeah. not her fault, evolution is real π
the glow-up version is nvme_get_features_host_mem_buf2 β go use that one instead, she ate π
β¨ RETURN β¨
so what do you get back, bestie?
- The nvme command status if a response was received (see
enum nvme_status_field), or -1witherrnoset otherwise π«
like if it worked you get a status, if it didn't you get -1 and errno tells you the whole story. that's the vibe check π
and that's the page!! no notes, no extra options hiding anywhere, just a smol deprecated function doing her best π§
signing off β this was the libnvme API manual, July 2026 edition, mwah π see you in the next one bestie, 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