libnvmf_con...e_discovered(9)
π libnvmf_con...e_discovered(9) π
okay so bestie, this page is from the libnvme API manual, and itβs lowkey iconic for anyone poking at discovered controllers. β¨
πΈ NAME πΈ
libnvmf_config_resolve_discovered β parameters for a controller that is not in the configuration. no cap, thatβs the whole vibe, periodt. π
β¨ SYNOPSIS β¨
the signature is literally giving:
const struct libnvmf_params * libnvmf_config_resolve_discovered (const
struct libnvmf_config *config , const struct libnvmf_config_conn *via_dc
, bool is_dc );
π ARGUMENTS π
configβ the resolved configuration. main character of this whole call, fr fr.via_dcβ the DC connection the controller was discovered through, orNULLfor a controller with no configured origin (e.g. an mDNS-discovered DC).is_dcβtruefor a discovered discovery controller (a referral),falsefor a discovered I/O controller.
π¦ DESCRIPTION π¦
okay so picture this: a controller learned at runtime β from a discovery log page, an AEN, or mDNS β has no section in the configuration, but still draws parameters from it: the defaults of the file scope it was discovered through, or the top-level scope when it has no configured origin. the four combinations are literally:
(via_dc = DC, is_dc = true)β a referral: a DC discovered via a DC; draws that DC's DC-defaults scope(via_dc = DC, is_dc = false)β a DLP-discovered IOC; draws that DC's IOC-defaults scope(via_dc = NULL, is_dc = true)β a DC with no configured origin (e.g. mDNS); draws the top-level DC scope(via_dc = NULL, is_dc = false)β an IOC with no configured origin; draws the top-level IOC scope
π RETURN π
you get back a borrowed parameter set, valid while config is alive. via_dc must be a connection of config; an I/O-controller via_dc yields NULL. π«Ά
bestie, Passing a connection that does not belong to config is undefined β do not do it. π
mwah π β this cutie is from the libnvme API manual, dated October 2026, and the footer tag is libnvmf_config_resolve_disclibnvmf_con...e_discovered(9). slay, byeee π«Ά
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms