Searched refs:controllers (Results 1 - 7 of 7) sorted by relevance

/osnet-11/usr/src/lib/libdiskmgt/common/
H A Dbus.c137 /* There are no stat types defined for controllers */
218 descriptor_t **controllers; local
225 for (cnt = 0; bp->controllers[cnt]; cnt++);
228 controllers = (descriptor_t **)calloc(cnt + 1, sizeof (descriptor_t *));
229 if (controllers == NULL) {
234 for (i = 0; bp->controllers[i]; i++) {
235 controllers[i] = cache_get_desc(DM_CONTROLLER, bp->controllers[i],
238 cache_free_descriptors(controllers);
242 controllers[
[all...]
H A Dcontroller.c136 descriptor_t **controllers; local
140 controllers = cache_get_descriptors(DM_CONTROLLER, errp);
145 for (i = 0; controllers[i]; i++) {
146 if (libdiskmgt_str_eq(name, controllers[i]->p.controller->name)) {
147 controller = controllers[i];
150 cache_free_descriptor(controllers[i]);
153 free(controllers);
179 /* There are no stat types defined for controllers */
H A Dpath.c252 descriptor_t **controllers; local
259 controllers = (descriptor_t **)calloc(2, sizeof (descriptor_t *));
260 if (controllers == NULL) {
267 controllers[i++] = cache_get_desc(DM_CONTROLLER,
270 cache_free_descriptors(controllers);
275 controllers[i] = NULL;
278 return (controllers);
H A Dfindevs.c135 * disks, controllers and paths on the system. This model is returned in the
215 (void ***)&bp->controllers) != 0) {
279 bp->controllers = (controller_t **)calloc(1, sizeof (controller_t *));
280 if (bp->controllers == NULL) {
285 bp->controllers[0] = NULL;
288 if (add_ptr2array(cp, (void ***)&bp->controllers) != 0) {
478 * Add other controllers for multipath disks.
681 for (i = 0; diskp->controllers[i]; i++) {
682 if (cp == diskp->controllers[i]) {
695 if (add_ptr2array(cp, (void ***)&diskp->controllers) !
[all...]
H A Dcache.c92 * basically the information about the drives, aliases, devpaths, controllers
107 * walk which represent the drives and controllers. This is the second level
110 * When we update the second level of the cache (the drives and controllers)
142 * corresponding object. For objects we cache (controllers, paths & drives)
195 free(bp->controllers);
272 free(dp->controllers);
612 /* clear any ptrs from controllers to this drive */
613 if (dp->controllers != NULL) {
614 for (i = 0; dp->controllers[i]; i++) {
615 clr_ctrl_disk_ptr(dp->controllers[
[all...]
H A Ddrive.c834 descriptor_t **controllers; local
840 for (cnt = 0; diskp->controllers[cnt]; cnt++);
843 controllers = (descriptor_t **)calloc(cnt + 1, sizeof (descriptor_t *));
844 if (controllers == NULL) {
849 for (i = 0; diskp->controllers[i]; i++) {
850 controllers[i] = cache_get_desc(DM_CONTROLLER,
851 diskp->controllers[i], NULL, NULL, errp);
853 cache_free_descriptors(controllers);
858 controllers[i] = NULL;
861 return (controllers);
[all...]
H A Ddisks_private.h85 struct controller_info **controllers; member in struct:bus_info
108 controller_t **controllers; member in struct:disk

Completed in 46 milliseconds