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, see enum 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
  • -1 with errno set 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