NVME_SET_FEATURES_IOCS_PROFILE(2)

✨ NAME ✨

nvme_set_features_iocs_profile β€” okay bestie, this one sets the I/O command set profile feature πŸ’… (yes, the manual name is nvme_set_features_iocs_profile(2) from the libnvme API manual, and it's giving very "queue up the NVMe vibes" energy, we love that for us).


πŸŽ€ SYNOPSIS πŸŽ€

int nvme_set_features_iocs_profile (int fd , __u16 iocsi , bool save );

That's the whole signature, no cap. Three little args and it's off to the races πŸ¦‹


🌸 ARGUMENTS 🌸

  • fd β€” the file descriptor of the nvme device, aka your lil all-access pass to the drive 🫢
  • iocsi β€” the I/O Command Set Combination Index. That's the index, bestie, the actual number-of-the-thing πŸ“‡
  • save β€” whether to save the value across power states, so it survives the lights going out πŸ”Œβœ¨ (true = it remembers, false = it's a short-term memory girlie)

πŸ’– RETURN πŸ’–

So here's what you get back:

  • the nvme command status if a response was received β€” see enum nvme_status_field for what that status is actually saying πŸ‘€
  • or -1 with errno set otherwise
fr fr, check that errno when you see the -1 β€” it's not being mysterious on purpose, it's telling you exactly what went wrong πŸ’€

no SEE ALSO section on this one, we're keeping it short and iconic, periodt πŸ‘‘


and that's the whole page, bestie 🌈 This cutie lives in the libnvme API manual, dated July 2026 β€” tysm for reading, ily, go set some features responsibly πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from