HomeFreeBSD

nvmf: Refactor nvmf_add_namespaces to be more generic

Description

nvmf: Refactor nvmf_add_namespaces to be more generic

Rename to nvmf_scan_active_namespaces and accept an additional
callback function and callback argument. The callback is invoked on
each active namespace enumerated by the active namespace list from the
IDENTIFY command.

Reviewed by: imp
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D45458

Details

Provenance
jhbAuthored on Jun 5 2024, 7:51 PM
Reviewer
imp
Differential Revision
D45458: nvmf: Refactor nvmf_add_namespaces to be more generic
Parents
rGbed59baba2ca: nvmf: Pass const pointers to namespace data to nvmf_*_ns
Branches
Unknown
Tags
Unknown