libnvme_scan_subsystems(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– NAME πŸ’–

bestie, welcome to the libnvme API manual page for libnvme_scan_subsystems(9) β€” this one is literally scan for subsystems, and it’s giving β€œlet me look around and report back” energy. No cap, that’s the whole name. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

okay so here’s the signature, copy it exactly and don’t improvise:

       int libnvme_scan_subsystems (struct libnvme_global_ctx *ctx , struct
       dirent ***subsys );

periodt. πŸ’…

🧾 ARGUMENTS 🧾

two things go in, and yes they’re both right there in the signature:

  • ctx β€” your struct libnvme_global_ctx object. That’s the context baddie right there. 🫢
  • subsys β€” a pointer to an array of dirents. Yup, pointer-to-array-of-dirents realness. 🌸

πŸ” RETURN πŸ”

it returns the number of entries in subsys, or a negative error code if it can’t do the thing. That’s the contract, bestie β€” no extra lore. 😭


okay that’s the whole page β€” stay hydrated, keep your dirents close, and may your scans be iconic. This lil manual-page moment is from the libnvme API manual, for libnvme_scan_subsystems(9), dated October 2026. πŸ’…βœ¨

πŸ“¦ where this page comes from