Lines Matching refs:mod
48 disk_enum(topo_mod_t *mod, tnode_t *baynode,
55 topo_list_t *dlistp = topo_mod_getspecific(mod);
58 topo_mod_dprintf(mod, "disk_enum: "
65 topo_mod_dprintf(mod, "disk_enum: "
70 topo_mod_dprintf(mod, "disk_enum: "
83 topo_mod_dprintf(mod, "disk_enum: "
90 err = disk_declare_path(mod, baynode, dlistp, device);
92 topo_mod_strfree(mod, device);
98 _topo_init(topo_mod_t *mod, topo_version_t version)
106 topo_mod_setdebug(mod);
107 topo_mod_dprintf(mod, "_topo_init: "
110 if (topo_mod_register(mod, &disk_info, TOPO_VERSION) != 0) {
111 topo_mod_dprintf(mod, "_topo_init: "
112 "%s registration failed: %s\n", DISK, topo_mod_errmsg(mod));
113 return (-1); /* mod errno already set */
116 if ((dlistp = topo_mod_zalloc(mod, sizeof (topo_list_t))) == NULL) {
117 topo_mod_dprintf(mod, "_topo_inti: failed to allocate "
122 if (dev_list_gather(mod, dlistp) != 0) {
123 topo_mod_unregister(mod);
124 topo_mod_free(mod, dlistp, sizeof (topo_list_t));
125 topo_mod_dprintf(mod, "_topo_init: "
130 topo_mod_dprintf(mod, "_topo_init: "
133 topo_mod_setspecific(mod, dlistp);
139 _topo_fini(topo_mod_t *mod)
141 topo_list_t *dlistp = topo_mod_getspecific(mod);
142 dev_list_free(mod, dlistp);
143 topo_mod_free(mod, dlistp, sizeof (topo_list_t));
144 topo_mod_unregister(mod);
145 topo_mod_dprintf(mod, "_topo_fini: "