HomeFreeBSD

Formalize NVMe controller consumer life cycle.

Description

Formalize NVMe controller consumer life cycle.

This fixes possible double call of fail_fn, for example on hot removal.
It also allows ctrlr_fn to safely return NULL cookie in case of failure
and not get useless ns_fn or fail_fn call with NULL cookie later.

MFC after: 2 weeks

Details

Provenance
mavAuthored on
Parents
rS351319: makefs: use `char *` not `void *` for buf b_data, drop casts in msdos
Branches
Unknown
Tags
Unknown