STRUCT ASYNC_SCAN_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct async_scan_info β€” bestie briefing πŸ¦‹

okay so this is struct async_scan_info(9) from the Kernel API Manual, and it's literally the struct that keeps track of controller & NSIDs to scan. no cap, it's giving β€œtiny but important” energy. πŸ’…

🌸 NAME 🌸

struct async_scan_info β€” keeps track of controller & NSIDs to scan.

✨ SYNOPSIS ✨

the whole struct, exactly as written, bestie:

       struct async_scan_info {
           struct nvme_ctrl *ctrl;
           atomic_t next_nsid;
           __le32 *ns_list;
        };

🫢 Members 🫢

  • ctrl β€” Controller on which namespaces are being scanned πŸ‘‘
  • next_nsid β€” Index of next NSID to scan in ns_list πŸ”₯
  • ns_list β€” Pointer to list of NSIDs to scan πŸŽ€

😭 Note 😭

There is a single async_scan_info structure shared by all instances of nvme_scan_ns_async scanning a given controller, so the atomic operations on next_nsid are critical to ensure each instance scans a unique NSID. fr fr, that atomic bit is the main character. 🫢

🌈 SEE ALSO 🌈

  • Kernel file ./drivers/nvme/host/core.c 🧚

okay that's the page, bestie πŸ’– β€” source/version: ./drivers/nvme/host, date: October 2026, and the footer star is struct async_scan_info(9). signing off with a πŸŽ€ and a πŸ’‹.

πŸ“¦ where this page comes from