NVME_GET_FEATURES_POWER_MGMT(2)
β¨ NAME β¨
nvme_get_features_power_mgmt β okay bestie, this one grabs the power management feature for you π
It's a lil function from the libnvme API manual, section 2, and she is so useful, no cap π«Ά
πΈ SYNOPSIS πΈ
int nvme_get_features_power_mgmt (int fd , enum nvme_get_features_sel
sel , __u32 *result );
Likeβ¦ that's the whole vibe. Three little things go in, an int comes out π
π¦ ARGUMENTS π¦
fdβ the file descriptor of your nvme device, bestie. Your lil passport to the drive πͺͺβ¨selβ which type of attribute you want back. Go checkenum nvme_get_features_selfor the menu, it's giving β¨build-your-own-featureβ¨ πresultβ the command completion result, straight outta CQE dword0 π (yes, dword0. she's iconic like that.)
π RETURN π
So here's what you get back, fr fr:
The nvme command status if a response was received β peep enum nvme_status_field for the full deets on what that status could be π
β¦or -1 with errno set, if it's not that π (otherwise, as the elders say)
lowkey important: it's either a real status code OR a-1+errnosituation. There is no third option, periodt π
<div align="center">πΈ π¦ π π¦ πΈ</div>
That's the whole page, bestie!! July 2026, brought to you by the libnvme API manual β go forth and get those features πβ¨π
π¦ 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