NVME_MI_ADMIN_IDENTIFY_CTRL_LIST(2)
π nvme_mi_admin_identify_ctrl_list π
okay bestie, so this one lives in the libnvme API manual, and it's genuinely so useful β it's how you get a list of controllers straight from the controller itself. no cap. let's go β¨
β¨ NAME β¨
nvme_mi_admin_identify_ctrl_list β Perform an Admin identify for a controller list.
it does exactly what it says on the tin, fr fr π
πΈ SYNOPSIS πΈ
int nvme_mi_admin_identify_ctrl_list (nvme_mi_ctrl_t ctrl , __u16 cntid
, struct nvme_ctrl_list *list );
three things go in, one int comes out. iconic π
π¦ ARGUMENTS π¦
ctrlβ Controller to process identify command. this is the whole main character of the call, the controller you're asking π«Άcntidβ Controller ID to specify list start. it's a__u16, and it tells the list where to begin β¨listβ List data to populate. a pointer tostruct nvme_ctrl_list, and yes, you're filling this bad boy up π
π DESCRIPTION π
so here's the vibe: this performs an Identify command, for the controller list starting with IDs greater than or equal to cntid. literally just "gimme everyone from here on out" π§
and here's the important part, so listen up: it will return an error if the length of the response data (from the controller) is not a full NVME_IDENTIFY_DATA_SIZE. so basically, either the whole thing lands or it yells at you β and on success, id will be fully populated. no half-filled vibes allowed π
See: struct nvme_ctrl_list π
π RETURN π
- the nvme command status if a response was received (peep
enum nvme_status_fieldfor the deets) π₯ - or
-1witherrnoset otherwise π
bestie note: that-1means it never even got a response, so don't go looking at the status field β check yourerrnoinstead π
π SEE ALSO π
struct nvme_ctrl_list, enum nvme_status_field β go read those, iykyk π
and that's the whole thing! this page is from the libnvme API manual, dated July 2026. slay, go populate some lists, mwah ππ β¨
π¦ 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