Home
last modified time | relevance | path

Searched refs:devlink (Results 1 – 25 of 38) sorted by relevance

12

/titanic_44/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_usb.c424 get_dev_link_path(di_node_t node, char *nodetype, char *re, char **devlink, char **minor_path, char… in get_dev_link_path() argument
431 *devlink = NULL; in get_dev_link_path()
456 *devlink = get_devlink(devlink_hdl, re, *minor_path); in get_dev_link_path()
465 if ((*devlink == NULL) && (re != NULL) && in get_dev_link_path()
467 *devlink = get_usb_devlink(*minor_path, "/dev/usb/"); in get_dev_link_path()
470 if (*devlink != NULL) { in get_dev_link_path()
489 char *devlink = NULL; in devinfo_usb_video4linux_add() local
497 "^usb/video[0-9]+", &devlink, &minor_path, &minor_name); in devinfo_usb_video4linux_add()
499 if ((minor_path == NULL) || (devlink == NULL)) { in devinfo_usb_video4linux_add()
504 HAL_DEBUG(("devlink %s, minor_name %s", devlink, minor_name)); in devinfo_usb_video4linux_add()
[all …]
H A Ddevinfo_storage.c52 char *devlink; member
69 …info_lofi_add_minor(HalDevice *parent, di_node_t node, char *minor_path, char *devlink, dev_t dev);
72 char *devlink, dev_t dev, int dosnum);
83 static char *devinfo_volume_get_slice_name (char *devlink);
451 char *devlink = NULL; in devinfo_floppy_add() local
474 if ((devlink = get_devlink(devlink_hdl, "diskette.+" , minor_path)) != NULL) { in devinfo_floppy_add()
479 free(devlink); in devinfo_floppy_add()
480 devlink = NULL; in devinfo_floppy_add()
484 if ((devlink == NULL) || (minor_path == NULL)) { in devinfo_floppy_add()
505 hal_device_property_set_string (d, "block.device", devlink); in devinfo_floppy_add()
[all …]
H A Ddevinfo.c412 walk_devlinks(di_devlink_t devlink, void *arg) in walk_devlinks() argument
416 *path = strdup(di_devlink_path(devlink)); in walk_devlinks()
/titanic_44/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_cvt.c30 char *devlink; member
69 static scfga_ret_t devlink_to_dyncomp(char *devlink,
575 assert(dynt.devlink != NULL); in devlink_dyn_to_devpath()
583 if ((s_readlink(dynt.devlink, buf, PATH_MAX) == -1) || in devlink_dyn_to_devpath()
602 S_FREE(dynt.devlink); in devlink_dyn_to_devpath()
614 char *devlink = NULL; in make_dyncomp() local
638 ret = physpath_to_devlink(path, &devlink, l_errnop, match_minor); in make_dyncomp()
640 assert(devlink != NULL); in make_dyncomp()
643 ret = devlink_to_dyncomp(devlink, dyncompp, l_errnop); in make_dyncomp()
644 S_FREE(devlink); in make_dyncomp()
[all …]
H A Dcfga_utils.c1094 get_link(di_devlink_t devlink, void *arg) in get_link() argument
1103 char *content = (char *)di_devlink_content(devlink); in get_link()
1113 *(larg->linkpp) = strdup(di_devlink_path(devlink)); in get_link()
/titanic_44/usr/src/cmd/hal/utils/
H A Dfsutils.c55 get_slice_name(char *devlink) in get_slice_name() argument
61 if ((p = strstr(devlink, "/lofi/")) != 0) { in get_slice_name()
65 part = strrchr(devlink, 'p'); in get_slice_name()
66 slice = strrchr(devlink, 's'); in get_slice_name()
67 disk = strrchr(devlink, 'd'); in get_slice_name()
H A Dfsutils.h19 char *get_slice_name(char *devlink);
/titanic_44/usr/src/cmd/devfsadm/
H A Ddevfsadm.c2481 char devlink[PATH_MAX]; in devfsadm_mklink() local
2514 (void) strlcpy(devlink, dev_dir, sizeof (devlink)); in devfsadm_mklink()
2515 (void) strlcat(devlink, "/", sizeof (devlink)); in devfsadm_mklink()
2516 (void) strlcat(devlink, link, sizeof (devlink)); in devfsadm_mklink()
2548 vprint(INFO_MID, "adding link %s ==> %s\n", devlink, rcontents); in devfsadm_mklink()
2551 if ((rv = create_link_common(devlink, rcontents, &link_exists)) in devfsadm_mklink()
2572 (_da_check_for_usb(devlink, root_dir) == 1)) { in devfsadm_mklink()
2573 (void) da_add_list(&devlist, devlink, instance, in devfsadm_mklink()
2577 (void) da_add_list(&devlist, devlink, instance, in devfsadm_mklink()
2596 char devlink[PATH_MAX + 1]; in devfsadm_secondary_link() local
[all …]
H A Ddevfsadm_impl.h204 char *devlink; /* without ".../dev/" prefix */ member
367 static void rm_link_from_cache(char *devlink);
369 static void add_link_to_cache(char *devlink, char *physpath);
422 static int create_link_common(char *devlink, char *contents, int *exists);
488 static void set_logindev_perms(char *devlink);
H A Ddevfsadm.h248 int devfsadm_is_reserved(devlink_re_t re_array[], char *devlink);
H A DMakefile.com85 DEVLINKTAB = devlink.tab
H A Ddisk_link.c672 dvlink_cb(di_devlink_t devlink, void *arg) in dvlink_cb() argument
685 path = (char *)di_devlink_path(devlink); in dvlink_cb()
/titanic_44/usr/src/lib/sun_sas/common/
H A Ddevlink_disco.c51 get_devlink(di_devlink_t devlink, void *arg) in get_devlink() argument
61 char *content = (char *)di_devlink_content(devlink); in get_devlink()
72 *(warg->linkpp) = strdup(di_devlink_path(devlink)); in get_devlink()
/titanic_44/usr/src/lib/sun_fc/common/
H A DHBAPort.cc112 get_devlink(di_devlink_t devlink, void *arg) { in get_devlink() argument
122 char *content = (char *)di_devlink_content(devlink); in get_devlink()
132 *(warg->linkpp) = strdup(di_devlink_path(devlink)); in get_devlink()
/titanic_44/usr/src/lib/libdevinfo/
H A Ddevinfo_devlink.c2407 devlink_valid(di_devlink_t devlink) in devlink_valid() argument
2409 if (devlink == NULL || devlink->rel_path == NULL || in devlink_valid()
2410 devlink->abs_path == NULL || devlink->content == NULL || in devlink_valid()
2411 TYPE_NONE(devlink->type)) { in devlink_valid()
2419 di_devlink_path(di_devlink_t devlink) in di_devlink_path() argument
2421 if (!devlink_valid(devlink)) { in di_devlink_path()
2426 return (devlink->abs_path); in di_devlink_path()
2430 di_devlink_content(di_devlink_t devlink) in di_devlink_content() argument
2432 if (!devlink_valid(devlink)) { in di_devlink_content()
2437 return (devlink->content); in di_devlink_content()
[all …]
H A Dlibdevinfo.h459 extern const char *di_devlink_path(di_devlink_t devlink);
460 extern const char *di_devlink_content(di_devlink_t devlink);
461 extern int di_devlink_type(di_devlink_t devlink);
462 extern di_devlink_t di_devlink_dup(di_devlink_t devlink);
463 extern int di_devlink_free(di_devlink_t devlink);
H A Ddevfsmap.c1540 devlink_callback(di_devlink_t devlink, void *argp) in devlink_callback() argument
1544 if ((link = di_devlink_path(devlink)) != NULL) in devlink_callback()
1691 char devlink[MAXPATHLEN]; in devname2physpath() local
1702 (void) snprintf(devlink, MAXPATHLEN, "%s%s", in devname2physpath()
1704 linksize = readlink(devlink, tmpphyspath, MAXPATHLEN); in devname2physpath()
/titanic_44/usr/src/pkg/manifests/
H A Dservice-storage-avs-cache-management.mf70 driver name=ncall devlink=type=ddi_pseudo;name=ncall\t\D \
72 driver name=nsctl devlink=type=ddi_pseudo;name=nsctl\t\D \
74 driver name=nskern devlink=type=ddi_pseudo;name=nskern\t\D \
76 driver name=sdbc devlink=type=ddi_pseudo;name=sdbc\t\D perms="* 0666 root sys" \
H A Ddriver-crypto-tpm.mf47 devlink=type=ddi_pseudo;name=tpm\t\D perms="* 0600 root sys"
48 $(i386_ONLY)driver name=tpm devlink=type=ddi_pseudo;name=tpm\t\D \
H A Ddriver-network-cxgbe.mf30 devlink=type=ddi_ctl:devctl;minor1=t4nex\tt4nex\M2 \
H A Ddriver-x11-xsvc.mf46 driver name=xsvc devlink=type=ddi_pseudo;name=xsvc\t\M0
/titanic_44/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c1242 char *devlink = NULL; in sata_make_dyncomp() local
1358 minor_path, &devlink, &l_errno); in sata_make_dyncomp()
1361 if (devlink != NULL) { in sata_make_dyncomp()
1365 if ((cp = strstr(devlink, "dsk/")) != NULL) { in sata_make_dyncomp()
1376 free(devlink); in sata_make_dyncomp()
1384 minor_path, &devlink, &l_errno); in sata_make_dyncomp()
1386 if (devlink != NULL) { in sata_make_dyncomp()
1387 if ((cp = strstr(devlink, "rmt/")) != NULL) { in sata_make_dyncomp()
1391 free(devlink); in sata_make_dyncomp()
/titanic_44/usr/src/lib/mpapi/libmpscsi_vhci/common/
H A DMP_GetMPLogicalUnitProperties.c45 get_devlink(di_devlink_t devlink, void *arg) { in get_devlink() argument
53 *(warg->linkpp) = strdup(di_devlink_path(devlink)); in get_devlink()
/titanic_44/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c85 static int add_devpath(di_devlink_t devlink, void *arg);
105 static int fix_cluster_devpath(di_devlink_t devlink, void *arg);
446 add_devpath(di_devlink_t devlink, void *arg) in add_devpath() argument
490 devlink_path = (char *)di_devlink_path(devlink); in add_devpath()
1199 fix_cluster_devpath(di_devlink_t devlink, void *arg) in fix_cluster_devpath() argument
1214 devlink_path = (char *)di_devlink_path(devlink); in fix_cluster_devpath()
/titanic_44/usr/src/cmd/fwflash/plugins/transport/common/
H A Dsd.c136 static int sdfw_link_cb(di_devlink_t devlink, void *arg);
884 sdfw_link_cb(di_devlink_t devlink, void *arg) in sdfw_link_cb() argument
888 result = di_devlink_path(devlink); in sdfw_link_cb()

12