/illumos-gate/usr/src/uts/common/os/ |
H A D | modctl.c | 975 char *devpath; local 993 devpath = i_ddi_strdup(pathbuf, KM_SLEEP); 1001 if (e_ddi_device_retired(devpath)) { 1002 cmn_err(CE_NOTE, "Device: already retired: %s", devpath); 1003 (void) e_ddi_retire_persist(devpath); 1004 kmem_free(devpath, strlen(devpath) + 1); 1013 kmem_free(devpath, strlen(devpath) + 1); 1026 retval = e_ddi_retire_device(devpath, cons_arra 1058 char *devpath; local 1088 char *devpath; local 2279 char *devpath, *cn_name_str; local [all...] |
/illumos-gate/usr/src/uts/common/sys/ |
H A D | ddi_implfuncs.h | 279 int e_ddi_retire_persist(char *devpath); 280 int e_ddi_retire_unpersist(char *devpath); 281 int e_ddi_device_retired(char *devpath);
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | x86_adm.c | 77 print_errString(int errnum, char *devpath) argument 84 if (devpath == NULL) { 89 "%s - %s.\n\n", errStr, devpath);
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | getdment.c | 57 static int dmap_resolve_link(char *devpath, char **devfs_path); 452 * devpath: Absolute path to /dev link 456 dmap_resolve_link(char *devpath, char **devfs_path) argument 468 linksize = readlink(devpath, contents, PATH_MAX); 487 /* relative path, prefix devpath */ 488 if ((ptr = strrchr(devpath, '/')) == NULL) { 493 (void) strcpy(stage_link, devpath);
|
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/ |
H A D | topo_gather.c | 230 char *devpath = NULL; local 281 &devpath, &err) == 0) { 287 (void) snprintf(devp, PATH_MAX, "%s:q,raw", devpath); 290 topo_hdl_strfree(thp, devpath); 297 TOPO_STORAGE_LOGICAL_DISK_NAME, &devpath, &err) == 0) { 299 devpath); 300 topo_hdl_strfree(thp, devpath);
|
/illumos-gate/usr/src/uts/sun4u/montecarlo/io/ttymux_dacf/ |
H A D | ttymux_dacf.c | 474 char *devpath; local 484 devpath = kmem_alloc(MAXPATHLEN+2, KM_SLEEP); 490 if (prom_ihandle_to_path(ihdls[i], devpath, MAXPATHLEN) == 0) 499 if (strrchr(devpath, ':') == NULL) 500 (void) strcat(devpath, ":a"); /* assume :a ! */ 502 if ((cn = get_aconsole(ms, devpath)) == 0) { 504 " consoles - ignoring %s\n", devpath); 515 cn->sm_path = kmem_alloc(strlen(devpath) + 1, KM_SLEEP); 516 (void) strcpy(cn->sm_path, devpath); 520 kmem_free(devpath, MAXPATHLE [all...] |
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo_usb.c | 314 gchar *devpath = NULL; local 322 if ((devpath = di_devfs_path (node)) == NULL) 327 p = strrchr (devpath, '/'); 332 if ((tmp_node = di_init (devpath, DINFOCPYALL)) == DI_NODE_NIL) 361 if (devpath != NULL) 362 di_devfs_path_free (devpath);
|
H A D | devinfo_storage.c | 51 char *devpath; member in struct:devinfo_storage_minor 84 static gboolean dos_to_dev(char *path, char **devpath, int *partnum); 760 free (m->devpath); 770 char *devpath; local 779 devpath = (char *)calloc (1, pathlen); 780 snprintf(devpath, pathlen, "%s/%s", maindev_path, slice); 782 m->devpath = devpath; 787 if ((m->devpath == NULL) || (m->devlink == NULL)) { 810 char *devpath, *devlin local 1413 dos_to_dev(char *path, char **devpath, int *partnum) argument [all...] |
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | zcons.c | 229 char devpath[MAXPATHLEN]; local 244 (void) snprintf(devpath, sizeof (devpath), "/devices/%s", tmp); 247 if ((hdl = devctl_device_acquire(devpath, 0)) == NULL) { 249 "but it could not be controlled.", devpath); 256 "but it could not be removed.", devpath);
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | boot_plat.c | 349 is_netdev(char *devpath) argument 351 pnode_t node = prom_finddevice(devpath); 366 options = prom_path_options(devpath);
|
/illumos-gate/usr/src/cmd/fcinfo/ |
H A D | fcinfo.h | 136 void printLUNInfo(struct scsi_inquiry *inq, HBA_UINT32 scsiLUN, char *devpath);
|
H A D | printAttrs.c | 307 printLUNInfo(struct scsi_inquiry *inq, HBA_UINT32 scsiLUN, char *devpath) { argument 335 fprintf(stdout, gettext("\t OS Device Name: %s\n"), devpath);
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/hdrs/ |
H A D | g_state.h | 154 char *devpath; member in struct:mplist_struct
|
/illumos-gate/usr/src/boot/sys/boot/efi/boot1/ |
H A D | ufs_module.c | 104 DPRINTF("Loading '%s' from %s\n", filepath, devpath_str(dev->devpath));
|
H A D | zfs_module.c | 106 DPRINTF("load: '%s' spa: '%s', devpath: %s\n", filepath, spa->spa_name, 107 devpath_str(devinfo->devpath));
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | tavor.c | 613 char *devpath; local 628 devpath = di_devfs_path(thisnode); 635 di_devfs_path_free(devpath); 639 /* calloc enough for /devices + devpath + ":devctl" + '\0' */ 640 devlength = strlen(devpath) + strlen(devprefix) + 646 di_devfs_path_free(devpath); 651 "%s%s%s", devprefix, devpath, devsuffix); 661 di_devfs_path_free(devpath); 670 di_devfs_path_free(devpath); 681 di_devfs_path_free(devpath); [all...] |
H A D | hermon.c | 264 char *devpath; local 280 devpath = di_devfs_path(thisnode); 285 di_devfs_path_free(devpath); 289 /* calloc enough for /devices + devpath + ":devctl" + '\0' */ 290 devlength = strlen(devpath) + strlen(devprefix) + 297 di_devfs_path_free(devpath); 301 "%s%s%s", devprefix, devpath, devsuffix); 308 di_devfs_path_free(devpath); 318 di_devfs_path_free(devpath); 329 di_devfs_path_free(devpath); [all...] |
/illumos-gate/usr/src/lib/libdevice/ |
H A D | devctl.c | 987 char devpath[MAXPATHLEN]; local 1005 (void) memset(devpath, 0, sizeof (devpath)); 1006 (void) strcat(devpath, DCP(dcp)->opath); 1016 lastslash = strrchr(devpath, '/'); 1023 (void) strcat(devpath, "/"); 1024 (void) strlcat(devpath, devname, MAXPATHLEN); 1025 *new_dcp = dc_mkhndl(DEVCTL_CLONE, devpath, 0, dcp);
|
/illumos-gate/usr/src/lib/sun_sas/common/ |
H A D | Sun_sasScsiInquiry.c | 33 SendScsiInquiry(const char *devpath, HBA_UINT8 cdb1, HBA_UINT8 cdb2, argument 59 status = send_uscsi_cmd(devpath, &ucmd_buf);
|
H A D | Sun_sasScsiReadCapacity.c | 33 SendScsiReadCapacity(const char *devpath, void *responseBuffer, argument 57 status = send_uscsi_cmd(devpath, &ucmd_buf);
|
/illumos-gate/usr/src/lib/storage/libg_fc/common/ |
H A D | io.c | 732 * devpath: Valid block device path. 746 g_devid_get(char *devpath, ddi_devid_t *devid, di_node_t root, argument 756 if (devpath == NULL || devid == NULL || drvr_name == NULL) { 771 if (strstr(devpath, DEV_PREFIX)) { 772 strcat(rootpath, devpath + strlen(DEV_PREFIX) - 1); 773 if (strchr(devpath, ':')) {
|
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap_sbd.c | 813 char *devpath; local 839 if ((devpath = calloc(1, len)) == NULL) 842 (void) snprintf(devpath, len, "%s%s", DEVDIR, path); 844 devpath = NULL; 846 DBG("ap_cm_path(%d)=%s\n", seq, devpath ? devpath : ""); 848 return (devpath);
|
/illumos-gate/usr/src/uts/common/cpr/ |
H A D | cpr_misc.c | 270 #define devpath un.un_devpath macro 281 error = i_devname_to_promname(cf->cf_devfs, devpath, 283 if (error || strcmp(devpath, cf->cf_dev_prom)) { 285 cf->cf_dev_prom, devpath, rerun); 414 error = i_devname_to_promname(cf->cf_devfs, devpath, OBP_MAXPATHLEN); 415 if (error || strcmp(devpath, cf->cf_dev_prom)) { 417 cf->cf_dev_prom, devpath, rerun);
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | alias.c | 100 fd = open(ap->devpaths->devpath, O_RDONLY|O_NDELAY);
|
/illumos-gate/usr/src/cmd/hal/probing/volume/ |
H A D | probe-volume.c | 424 char *devpath, *rdevpath; local 471 if (!(is_dos = dos_to_dev(device_file, &devpath, &dos_num))) { 472 devpath = device_file; 498 fd = open (devpath, O_RDONLY | O_NONBLOCK);
|