Searched defs:minor_name (Results 1 - 17 of 17) sorted by relevance

/osnet-11/usr/src/lib/libdevinfo/
H A Ddevinfo_dim.c75 char *minor_name)
92 * may need to add space for ":<minor_name>"
94 if (minor_name)
95 mlen = len + 1 + strlen(minor_name);
106 if (minor_name) {
109 (void) strcat(devices, minor_name);
127 di_dim_path_dev(di_dim_t dim, char *drv_name, int instance, char *minor_name) argument
133 /* we must have a minor_name to resolve to a public name */
134 if (minor_name == NULL)
137 /* convert <driver><instance><minor_name> t
74 di_dim_path_devices(di_dim_t dim, char *drv_name, int instance, char *minor_name) argument
[all...]
H A Ddevinfo_devlink.c1500 const char *minor_name,
1518 if (strcmp(cmnp->name, minor_name) == 0 && cmnp->node &&
1524 if (cmnp && strcmp(cmnp->name, minor_name) == 0 && cmnp->node &&
1497 get_last_minor( struct di_devlink_handle *hdp, const char *devfs_path, const char *minor_name, int flags) argument
/osnet-11/usr/src/lib/libpcp/common/
H A Dpcp_utils.c226 char *minor_name; local
249 minor_name = di_minor_name(minor);
251 if (strcmp(minor_name, "glvc") == 0) {
283 char *minor_name; local
301 minor_name = di_minor_name(minor);
303 if (strcmp(minor_name, service) == 0) {
/osnet-11/usr/src/lib/lvm/libpreen/common/
H A Dmdpreen.c244 char *minor_name = NULL; local
256 devnp->key, ep)) == NULL) || ((minor_name =
270 if (strstr(minor_name, ",blk") != NULL) {
271 tmpstr = strrchr(minor_name, ',');
274 if (strstr(minor_name, ",raw") == NULL) {
276 minor_name);
279 minor_name);
293 Free(minor_name);
298 Free(minor_name);
/osnet-11/usr/src/lib/libdevid/
H A Ddeviceid.c208 * Convert the specified devid/minor_name into a devid_nmlist_t array
222 char *minor_name,
255 /* translate devid/minor_name to /devices paths */
256 again: if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, NULL) != 0)
260 if (modctl(MODDEVID2PATHS, devid, minor_name, 0, &lens, paths) != 0) {
219 devid_deviceid_to_nmlist( char *search_path, ddi_devid_t devid, char *minor_name, devid_nmlist_t **retlist) argument
/osnet-11/usr/src/lib/fm/topo/modules/i86pc/x86pi/common/
H A Dx86pi_bay.c113 char *minor_name)
139 devfs_path, minor_name ? minor_name : "NULL");
203 char *minor_name = NULL; local
246 minor_name = di_minor_name(minor);
249 f, phy, minor_name);
255 rv = bay_pgroups(mod, tnodep, &dnode, &sib, minor_name);
112 bay_pgroups(topo_mod_t *mod, tnode_t *tnp, di_node_t *dnp, di_node_t *sibp, char *minor_name) argument
/osnet-11/usr/src/lib/lvm/libmeta/common/
H A Dmeta_getdevs.c584 meta_deviceid_to_nmlist(char *search_path, ddi_devid_t devid, char *minor_name, argument
593 res = devid_deviceid_to_nmlist(search_path, devid, minor_name, retlist);
H A Dmeta_set_prv.c735 char *minor_name = NULL; local
797 * minor_name will be NULL if dnp->devid == NULL
800 if (np->minor_name != NULL)
801 minor_name = Strdup(np->minor_name);
818 minor_name = meta_getdidminorbykey(
822 minor_name = meta_getdidminorbykey(
843 strlen(minor_name) + 2;
846 minor_name);
877 if (minor_name
[all...]
H A Dmeta_devadm.c604 char *minor_name = NULL; local
670 if ((minor_name = meta_getdidminorbykey(setno, sideno,
674 * devidp is non-null then the minor_name has
686 devidstr = devid_str_encode(devidp, minor_name);
708 minor_name, &disklist);
1348 char *minor_name = NULL; local
1452 ret = devid_str_decode(dnp->devid, &devidp, &minor_name);
1453 devid_str_free(minor_name);
H A Dmeta_nameinfo.c496 char *minor_name = NULL; local
552 np->minor_name = (char *)NULL;
555 (void) devid_get_minor_name(fd, &minor_name);
562 if (minor_name != NULL) {
563 np->minor_name = Strdup(minor_name);
564 devid_str_free(minor_name);
567 np->minor_name = (char *)NULL;
1314 char *minor_name = NULL; local
1325 if (devid_get_minor_name(fd, &minor_name)
[all...]
H A Dmeta_db.c2444 char *minor_name = NULL; local
2484 &minor_name) == -1) {
2490 if (minor_name == NULL) {
2500 free(minor_name);
2510 if (strlen(minor_name) > MDDB_MINOR_NAME_MAX) {
2511 free(minor_name);
2516 (void) strcpy(c.c_locator.l_minor_name, minor_name);
2517 free(minor_name);
H A Dmeta_set.c694 char *minor_name = NULL; local
803 if (np->minor_name == (char *)NULL) {
813 (void) devid_get_minor_name(fd, &minor_name);
814 np->minor_name = Strdup(minor_name);
815 devid_str_free(minor_name);
820 devidstrlen = strlen(dnp->devid) + strlen(np->minor_name) + 2;
825 * appropriate to that minor_name and in this case it will be
829 "%s/%s", dnp->devid, np->minor_name);
H A Dmeta_import.c48 char *minor_name; member in struct:did_list
246 mdi_debug("\t:minor_name = '%s'\n", nonrep_did_listp->minor_name);
280 if (nonrep_did_listp->minor_name) {
282 nonrep_did_listp->minor_name, MDDB_MINOR_NAME_MAX);
483 * Parse the passed in minor_name and get the slice number contained within it.
484 * The format of the minor_name is "<unit>,<unit>s<sliceno>,<raw|blk>".
493 char *minor_name,
500 slicep = strrchr(minor_name, 's');
538 char *minor_name; local
492 meta_didmin_slice( char *minor_name, uint_t *sliceno ) argument
1020 char *minor_name; local
2325 char *minor_name, *this_minor = NULL; local
2824 char *minor_name = NULL; local
3914 char *minor_name = NULL; local
4326 char *minor_name = NULL; local
[all...]
/osnet-11/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_usb.c437 get_dev_link_path(di_node_t node, char *nodetype, char *re, char **devlink, char **minor_path, char **minor_name) argument
446 *minor_name = NULL;
484 *minor_name = di_minor_name(minor);
505 char *minor_name = NULL; local
510 "^usb/video[0-9]+", &devlink, &minor_path, &minor_name);
517 HAL_DEBUG(("devlink %s, minor_name %s", devlink, minor_name));
518 if (strcmp(minor_name, "usbvc") != 0) {
567 char *minor_name = NULL; local
571 "^usb/hid[0-9]+", &devlink, &minor_path, &minor_name);
641 char *minor_name = NULL; local
687 char *devlink = NULL, *minor_path = NULL, *minor_name = NULL; local
[all...]
/osnet-11/usr/src/grub/grub2/util/
H A Dgetroot.c322 char *minor_name = mnt.mnt_special + 24; local
323 while (*minor_name != 0 && *minor_name != ':')
324 minor_name++;
325 if (*minor_name == ':') {
326 minor_name++;
327 device = xasprintf("/dev/rramdisk/%s", minor_name);
/osnet-11/usr/src/lib/libcfgadm/common/
H A Dconfig_admin.c1128 char *drv, *minor_name; local
1132 minor_name = di_minor_name(minor);
1135 if (drv != NULL && inst != -1 && minor_name != NULL &&
1137 minor_name) < len) { /* snprintf returns strlen */
2231 char *minor_name; local
2239 minor_name = di_minor_name(minor);
2241 minor_name = di_hp_name(hp);
2243 if (devfs_path == NULL || minor_name == NULL) {
2249 DEVICES_DIR, devfs_path, minor_name);
2579 char *minor_name; local
[all...]
/osnet-11/usr/src/lib/storage/libg_fc/common/
H A Dmap.c5533 devices_get_all(di_node_t root, char *drvr_name, char *minor_name, argument
5601 sprintf(devicepath, "%s%s", devfs_path, minor_name);

Completed in 74 milliseconds