nvme_capacity_mgmt(2)

πŸ’– nvme_capacity_mgmt πŸ’–

okay bestie, so this is a page from the libnvme API manual, section 2, and it's all about one lil' function that handles the Capacity management command. yes it's short. no it's not boring. it's giving "small but mighty" and we're obsessed fr fr. ✨


🌸 NAME 🌸

nvme_capacity_mgmt β€” the Capacity management command, bestie. that's the whole vibe. πŸ‘‘

πŸ¦‹ SYNOPSIS πŸ¦‹

int nvme_capacity_mgmt (struct nvme_capacity_mgmt_args *args );

like, you hand it a pointer to your args struct and it does the thing. simple. iconic. no notes. πŸ’…

πŸ’œ ARGUMENTS πŸ’œ

  • args β€” this is your struct nvme_capacity_mgmt_args argument structure, and it is literally the whole personality of this call. you pass it in, it carries all the details. don't leave home without it. πŸŽ€

✨ RETURN ✨

so here's the tea on what you get back:

  • if a response came through, you get the nvme command status β€” peek at enum nvme_status_field for the full rundown of what those statuses mean, iykyk. 🫢
  • if it didn't work out, you get -1 and errno gets set instead. so like, check your errno, don't just sit there wondering. 😭
no cap: -1 means go read errno, that's where the explanation is hiding. 🌈

mwah πŸ’‹ that's the whole page. this one came from July 2026, titled nvme_capacity_mgmt in the nvme_capacity_mgmt(2) era of your life β€” go forth and manage that capacity, main character. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from