libnvme_scan_namespace(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’– NAME πŸ’–

okay so bestie, this is the libnvme_scan_namespace(9) page from the libnvme API manual, and it is literally here to scan namespace based on sysfs name. no cap. ✨

🌸 SYNOPSIS 🌸

int libnvme_scan_namespace (struct libnvme_global_ctx *ctx , const char
       *name , struct libnvme_ns **ns );

πŸŽ€ ARGUMENTS πŸŽ€

  • ctx β€” a struct libnvme_global_ctx object. that’s the context bestie, it’s giving main character energy πŸ’…
  • name β€” the sysfs name of the namespace to scan. iconic. πŸ¦‹
  • ns β€” a struct libnvme_ns object to return. yes, this is the return object, periodt. 🫢

πŸ¦‹ RETURN πŸ¦‹

returns 0 on success, negative error code otherwise. fr fr πŸ˜­βœ…


mwah πŸ’‹ β€” from the libnvme API manual, October 2026, on the libnvme_scan_namespace(9) page. byeee πŸ‘‹πŸ’–

πŸ“¦ where this page comes from