Lines Matching refs:mod
67 _topo_init(topo_mod_t *mod, topo_version_t version)
73 topo_mod_setdebug(mod);
74 topo_mod_dprintf(mod, "initializing zambezi enumerator\n");
76 if (topo_mod_register(mod, &zambezi_info, TOPO_VERSION) < 0) {
77 topo_mod_dprintf(mod, "zambezi registration failed: %s\n",
78 topo_mod_errmsg(mod));
79 return; /* mod errno already set */
81 topo_mod_dprintf(mod, "zambezi enumr initd\n");
85 _topo_fini(topo_mod_t *mod)
87 topo_mod_unregister(mod);
91 zam_tnode_create(topo_mod_t *mod, tnode_t *parent,
97 nvlist_t *auth = topo_mod_auth(mod, parent);
99 fmri = topo_mod_hcfmri(mod, parent, FM_HC_SCHEME_VERSION, name, i,
104 topo_mod_dprintf(mod,
106 name, topo_mod_errmsg(mod));
110 ntn = topo_node_bind(mod, parent, name, i, fmri);
113 topo_mod_dprintf(mod,
117 topo_strerror(topo_mod_errno(mod)));
138 void *priv, topo_mod_t *mod)
144 if ((ntn = zam_tnode_create(mod, parent, name, i, NULL)) == NULL) {
145 topo_mod_dprintf(mod, "%s ntn = NULL\n", name);
153 topo_mod_dprintf(mod, "cpuboard label error %d\n", err);
167 zambezi_enum(topo_mod_t *mod, tnode_t *rnode, const char *name,
173 topo_mod_dprintf(mod,
183 if (zam_declare(rnode, name, i, data, mod) == NULL)