TOPO_VERSION
hp = topo_open(TOPO_VERSION, NULL, &e);
topo_handle = topo_open(TOPO_VERSION, 0, &err);
if (v != TOPO_VERSION) {
"fmd version %d != client version %d\n", TOPO_VERSION, v);
thp = fmd_fmri_topo_hold(TOPO_VERSION);
if (version != TOPO_VERSION)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((tp = topo_open(TOPO_VERSION, name, &err)) == NULL)
thp = fmd_fmri_topo_hold(TOPO_VERSION);
thp = fmd_fmri_topo_hold(TOPO_VERSION);
topo_hdl_t *thp = fmd_fmri_topo_hold(TOPO_VERSION);
if (version != TOPO_VERSION)
if ((g_thp = topo_open(TOPO_VERSION, "/", &err)) == NULL) {
if ((thp = topo_open(TOPO_VERSION, opt_R, &err)) == NULL) {
thp = fmd_hdl_topo_hold(dl->dl_fmd, TOPO_VERSION);
thdl = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
if ((thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION)) == NULL) {
thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
Eft_topo_hdl = fmd_hdl_topo_hold(Hdl, TOPO_VERSION);
Eft_topo_hdl = fmd_hdl_topo_hold(Hdl, TOPO_VERSION);
thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
if ((thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION)) == NULL) {
thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
(thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION)) != NULL) {
topo_hdl_t *thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL) {
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL) {
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
if ((thp = topo_open(TOPO_VERSION, NULL, &err)) != NULL) {
if (version != TOPO_VERSION)
if ((g_thp = topo_open(TOPO_VERSION, "/", &err)) == NULL) {
g_topohdl = topo_open(TOPO_VERSION, NULL, &topoerr);
if (topo_mod_register(mod, &cpu_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &dev_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &fmd_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &hc_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &legacy_hc_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &mem_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &mod_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &pkg_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &svc_info, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &sw_info, TOPO_VERSION) != 0) {
pgi.tpi_version = TOPO_VERSION;
pgi.tpi_version = TOPO_VERSION;
if (version != TOPO_VERSION)
if (version != TOPO_VERSION)
if ((fmod = topo_mod_load(mp, name, TOPO_VERSION)) == NULL) {
if (topo_mod_register(mod, &zfs_info, TOPO_VERSION) != 0) {
return (topo_mod_register(mod, &topo_dimm_mod, TOPO_VERSION));
if (topo_mod_register(mod, &disk_info, TOPO_VERSION) != 0) {
#define DISK_VERSION TOPO_VERSION
if (topo_mod_load(mod, TOPO_MOD_UFM, TOPO_VERSION) == NULL) {
{ "ahci facility provider", FM_FMRI_SCHEME_HC, TOPO_VERSION,
return (topo_mod_register(mod, &ahci_info, TOPO_VERSION));
{ "IPMI facility provider", FM_FMRI_SCHEME_HC, TOPO_VERSION,
return (topo_mod_register(mod, &ipmi_info, TOPO_VERSION));
"libhotplug facility provider", FM_FMRI_SCHEME_HC, TOPO_VERSION,
return (topo_mod_register(mod, &fac_prov_libhp_mod, TOPO_VERSION));
{ "mpt_sas facility provider", FM_FMRI_SCHEME_HC, TOPO_VERSION,
return (topo_mod_register(mod, &mptsas_info, TOPO_VERSION));
if (topo_mod_register(modhdl, &Hb_info, TOPO_VERSION) < 0) {
pgi.tpi_version = TOPO_VERSION;
TOPO_VERSION)) == NULL) {
if (topo_mod_register(mod, &ipmi_info, TOPO_VERSION) != 0) {
{ "ipmi", FM_FMRI_SCHEME_HC, TOPO_VERSION, &ipmi_ops };
if (topo_mod_register(mod, &nic_mod, TOPO_VERSION) != 0) {
if (topo_mod_register(modhdl, &Pci_info, TOPO_VERSION) != 0) {
if (topo_mod_load(mod, TOPO_MOD_UFM, TOPO_VERSION) == NULL) {
if (topo_mod_load(mod, XAUI, TOPO_VERSION) == NULL) {
pgi.tpi_version = TOPO_VERSION;
if (topo_mod_load(mod, DISK, TOPO_VERSION) == NULL) {
if ((rval = topo_mod_register(mod, &ses_info, TOPO_VERSION)) == 0)
pgi.tpi_version = TOPO_VERSION;
pgi.tpi_version = TOPO_VERSION;
pgi.tpi_version = TOPO_VERSION;
pgi.tpi_version = TOPO_VERSION;
pgi.tpi_version = TOPO_VERSION;
{ "smbios", FM_FMRI_SCHEME_HC, TOPO_VERSION, &smbios_ops };
if (topo_mod_register(mod, &smbios_info, TOPO_VERSION) != 0) {
return (topo_mod_register(mod, &topo_ufm_mod, TOPO_VERSION));
if (topo_mod_load(mod, DISK, TOPO_VERSION) == NULL) {
if (topo_mod_register(mod, &usb_mod, TOPO_VERSION) != 0) {
#define XFP_VERSION TOPO_VERSION
if (topo_mod_register(mod, &xfp_info, TOPO_VERSION) < 0) {
if (topo_mod_register(mod, &topo_zen_mod, TOPO_VERSION) != 0) {
if (topo_mod_register(mod, &chip_info, TOPO_VERSION) != 0) {
#define CHIP_VERSION TOPO_VERSION
if (topo_mod_register(mod, &chipset_mod, TOPO_VERSION) != 0) {
result = topo_mod_register(mod, &x86pi_modinfo, TOPO_VERSION);
if (topo_mod_load(mod, CHIP, TOPO_VERSION) == NULL) {
if (version != TOPO_VERSION) {
if (topo_mod_load(mod, DISK, TOPO_VERSION) == NULL) {
if (topo_mod_load(mod, _FAC_PROV, TOPO_VERSION) == NULL) {
#define X86PI_VERSION TOPO_VERSION
if ((hdl->libzfs_topo_hdl = _topo_open(TOPO_VERSION,
if ((thp = topo_open(TOPO_VERSION, root, &err)) == NULL) {
if ((thp = topo_open(TOPO_VERSION, root, &err)) == NULL) {
if ((thp = topo_open(TOPO_VERSION, root, &err)) == NULL) {