NVME_INIT_GET_FEATURES_LBA_RANGE-LIBNVME3(2)

πŸ“¦ version 3.2, in arch rolling

πŸŽ€ nvme_init_get_features_lba_range(9) πŸŽ€

okay so bestie, welcome to the libnvme API manual β€” this one's a little page about a little function that sets up a passthru command for Get Features, LBA Range edition. it's giving "small but crucial" ngl πŸ’…


✨ NAME ✨

nvme_init_get_features_lba_range β€” the glow-up ritual that Initializes a passthru command for Get Features - LBA Range. she's literally just here to prep your command buffer, and she ate 🫢


🌸 SYNOPSIS 🌸

void nvme_init_get_features_lba_range (struct libnvme_passthru_cmd *cmd
, __u32 nsid , enum nvme_get_features_sel sel , struct
nvme_lba_range_type *lrt );

note the void β€” she returns nothing because she's not about that giving-back life, she just sets things up for you πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • cmd β€” the Passthru command to use. this is the blank canvas, the main character struct you're handing over so she can fill it in ✨
  • nsid β€” Namespace ID. a __u32, very demure, very mindful. tells everyone which namespace we're talking about πŸ’œ
  • sel β€” Select which type of attribute to return. see enum nvme_get_features_sel for your options, iykyk 🌈
  • lrt β€” Buffer to receive LBA Range Type data structure. this is where the good stuff lands, so make sure it's ready to receive, no cap πŸ“

πŸ”₯ DESCRIPTION πŸ”₯

so what does she actually do? she initializes the passthru command buffer for the Get Features command with FID value NVME_FEAT_FID_LBA_RANGE ⭐

that's it. that's the whole vibe. she preps the buffer, sets the FID, and hands it back to you ready to rock. iconic behaviour honestly πŸ‘‘

real talk: this is just the setup step β€” she fills in the command buffer, she doesn't fire it off. don't come for her for not submitting the command, that's somebody else's job πŸ™ˆ

and that's the whole page, bestie β€” no hiding extra options, no secret flags, we keep it 100 πŸ’€


✨ sign-off szn ✨ this was the libnvme API manual, October 2026 edition β€” go forth and init those buffers, bestie. mwah πŸ’‹πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from