Home
last modified time | relevance | path

Searched refs:minor_path (Results 1 – 18 of 18) sorted by relevance

/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_usb.c432 *minor_path = NULL; in get_dev_link_path()
477 *minor_path = NULL; in get_dev_link_path()
491 char *minor_path = NULL; in devinfo_usb_video4linux_add() local
538 if (minor_path) { in devinfo_usb_video4linux_add()
539 di_devfs_path_free(minor_path); in devinfo_usb_video4linux_add()
553 char *minor_path = NULL; in devinfo_usb_input_add() local
612 if (minor_path) { in devinfo_usb_input_add()
613 di_devfs_path_free(minor_path); in devinfo_usb_input_add()
627 char *minor_path = NULL; in devinfo_usb_scsa2usb_add() local
659 if (minor_path) { in devinfo_usb_scsa2usb_add()
[all …]
H A Ddevinfo_acpi.c71 char *minor_path = NULL; in devinfo_acpi_add() local
103 ((minor_path = di_devfs_minor_path(minor)) == NULL)) { in devinfo_acpi_add()
108 "solaris.devfs_path", minor_path) == NULL) { in devinfo_acpi_add()
109 devinfo_acpi_add_minor(d, node, minor_path, dev); in devinfo_acpi_add()
112 di_devfs_path_free(minor_path); in devinfo_acpi_add()
120 devinfo_acpi_add_minor(HalDevice *parent, di_node_t node, char *minor_path, in devinfo_acpi_add_minor() argument
126 devinfo_set_default_properties(d, parent, node, minor_path); in devinfo_acpi_add_minor()
127 devinfo_add_enqueue(d, minor_path, &devinfo_acpi_handler); in devinfo_acpi_add_minor()
H A Ddevinfo_storage.c450 char *minor_path = NULL; in devinfo_floppy_add() local
477 di_devfs_path_free (minor_path); in devinfo_floppy_add()
478 minor_path = NULL; in devinfo_floppy_add()
516 di_devfs_path_free (minor_path); in devinfo_floppy_add()
605 char *minor_path = NULL; in devinfo_lofi_add_major() local
650 di_devfs_path_free (minor_path); in devinfo_lofi_add_major()
660 di_devfs_path_free (minor_path); in devinfo_lofi_add_major()
808 char *minor_path = NULL; in devinfo_storage_minors() local
851 di_devfs_path_free (minor_path); in devinfo_storage_minors()
858 di_devfs_path_free (minor_path); in devinfo_storage_minors()
[all …]
H A Ddevinfo_acpi.h34 char *minor_path, dev_t dev);
/illumos-gate/usr/src/lib/sun_fc/common/
H A DHBAPort.cc152 char *minor_path, *devlinkp; in convertToShortNames() local
163 minor_path = mappings->entry[j].ScsiId.OSDeviceName; in convertToShortNames()
164 if (strstr(minor_path, "/devices") != NULL) { in convertToShortNames()
165 minor_path = mappings->entry[j].ScsiId.OSDeviceName + in convertToShortNames()
168 minor_path = mappings->entry[j].ScsiId.OSDeviceName; in convertToShortNames()
172 minor_path = NULL; in convertToShortNames()
187 (void) di_devlink_walk(hdl, NULL, minor_path, DI_PRIMARY_LINK, in convertToShortNames()
/illumos-gate/usr/src/lib/sun_sas/common/
H A Ddevlink_disco.c97 char *minor_path, *devlinkp; in convertDevpathToDevlink() local
108 minor_path = mappings->entry[j].ScsiId.OSDeviceName; in convertDevpathToDevlink()
109 if (strstr(minor_path, "/devices") != NULL) { in convertDevpathToDevlink()
110 minor_path = mappings->entry[j].ScsiId. in convertDevpathToDevlink()
115 minor_path = NULL; in convertDevpathToDevlink()
132 (void) di_devlink_walk(hdl, NULL, minor_path, DI_PRIMARY_LINK, in convertDevpathToDevlink()
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsmap.c1982 char *minor_path = NULL; in devfs_walk_children_minors() local
2001 if (stat(minor_path, st) == -1) in devfs_walk_children_minors()
2005 (const char *)minor_path, st, in devfs_walk_children_minors()
2012 rv = callback(cb_arg, minor_path); in devfs_walk_children_minors()
2028 if (minor_path) in devfs_walk_children_minors()
2029 free(minor_path); in devfs_walk_children_minors()
2041 char *minor_path; in devfs_walk_device_minors() local
2052 minor_path = calloc(1, MAXPATHLEN); in devfs_walk_device_minors()
2086 if (stat(minor_path, st) == -1) in devfs_walk_device_minors()
2110 if (minor_path) in devfs_walk_device_minors()
[all …]
H A Ddevinfo_devlink.c1193 const char *minor_path; in link2minor() local
1378 const char *minor_path, in lookup_minor() argument
1387 if (minor_path == NULL) { in lookup_minor()
1396 minor_path); in lookup_minor()
2044 const char *minor_path, in di_devlink_walk() argument
2058 linkd.minor_path = minor_path; in di_devlink_walk()
2119 if (linkp->minor_path) { in check_args()
2190 if (linkp->minor_path) in walk_dev()
2362 if (linkp->minor_path) { in visit_link()
2385 assert(minor_path != NULL); in visit_link()
[all …]
H A Ddevinfo_devlink.h154 const char *minor_path; member
343 static void *lookup_minor(struct di_devlink_handle *hdp, const char *minor_path,
H A Dlibdevinfo.h457 const char *minor_path, uint_t flags, void *arg,
/illumos-gate/usr/src/cmd/modload/
H A Drem_drv.c254 cleanup_minor_walker(void *cb_arg, const char *minor_path) in cleanup_minor_walker() argument
256 if (unlink(minor_path) == -1) { in cleanup_minor_walker()
258 minor_path, strerror(errno)); in cleanup_minor_walker()
/illumos-gate/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c1194 is_devinfo_blk(char *minor_path) in is_devinfo_blk() argument
1204 if (strncmp(minor_path, "/devices/", strlen("/devices/")) != 0) in is_devinfo_blk()
1207 minor_portion = strrchr(minor_path, *MINOR_SEP); in is_devinfo_blk()
1213 node = di_init(minor_path + strlen("/devices"), DINFOMINOR); in is_devinfo_blk()
1242 char minor_path[MAXPATHLEN]; in sata_make_dyncomp() local
1310 (void) snprintf(minor_path, MAXPATHLEN, in sata_make_dyncomp()
1325 if (stat(minor_path, &sb) < 0) { in sata_make_dyncomp()
1326 if (is_devinfo_blk(minor_path)) { in sata_make_dyncomp()
1360 minor_path, &devlink, &l_errno); in sata_make_dyncomp()
1386 minor_path, &devlink, &l_errno); in sata_make_dyncomp()
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddisk_link.c785 char *minor_path; in reserved_links_exist() local
803 minor_path = di_devfs_minor_path(minor); in reserved_links_exist()
804 if (minor_path == NULL) { in reserved_links_exist()
809 (void) strlcpy(phys_path, minor_path, sizeof (phys_path)); in reserved_links_exist()
811 di_devfs_path_free(minor_path); in reserved_links_exist()
/illumos-gate/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_utils.c1126 char *minor_path; in physpath_to_devlink() local
1136 minor_path = node_path + strlen(DEVICES_DIR); in physpath_to_devlink()
1139 minor_path = NULL; in physpath_to_devlink()
1144 (void) di_devlink_walk(hdl, NULL, minor_path, DI_PRIMARY_LINK, in physpath_to_devlink()
H A Dcfga_ctl.c49 static char *get_node_path(char *minor_path);
1522 get_node_path(char *minor_path) in get_node_path() argument
1526 if ((path = strdup(minor_path)) == NULL) in get_node_path()
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_usb.c223 char *minor_path; in physpath_to_devlink() local
233 minor_path = (char *)node_path + strlen("/devices"); in physpath_to_devlink()
236 minor_path = NULL; in physpath_to_devlink()
241 (void) di_devlink_walk(hdl, "^cfg/", minor_path, DI_PRIMARY_LINK, in physpath_to_devlink()
/illumos-gate/usr/src/cmd/iscsiadm/
H A Dsun_ima.c1194 char *minor_path, *devlinkp, lunpath[MAXPATHLEN]; in SUN_IMA_GetLuProperties() local
1303 minor_path = lunpath; in SUN_IMA_GetLuProperties()
1304 if (strstr(minor_path, "/devices") != NULL) { in SUN_IMA_GetLuProperties()
1305 minor_path = lunpath + in SUN_IMA_GetLuProperties()
1308 minor_path = lunpath; in SUN_IMA_GetLuProperties()
1312 minor_path = NULL; in SUN_IMA_GetLuProperties()
1325 (void) di_devlink_walk(hdl, NULL, minor_path, in SUN_IMA_GetLuProperties()
/illumos-gate/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c266 char *minor_path; in ib_physpath_to_devlink() local
277 minor_path = (char *)node_path + strlen("/devices"); in ib_physpath_to_devlink()
281 (void) di_devlink_walk(hdl, "^cfg/", minor_path, DI_PRIMARY_LINK, in ib_physpath_to_devlink()