/titanic_50/usr/src/uts/sun4u/opl/io/oplmsu/ |
H A D | oplmsu_ioctl_uwp.c | 52 lpath_t *lpath; in oplmsu_uwioctl_iplink() local 82 lpath = (lpath_t *)kmem_zalloc(sizeof (lpath_t), KM_NOSLEEP); in oplmsu_uwioctl_iplink() 83 if (lpath == NULL) { in oplmsu_uwioctl_iplink() 95 lpath->rbuftbl = in oplmsu_uwioctl_iplink() 97 if (lpath->rbuftbl == NULL) { in oplmsu_uwioctl_iplink() 99 kmem_free(lpath, sizeof (lpath_t)); in oplmsu_uwioctl_iplink() 106 cv_init(&lpath->sw_cv, "oplmsu lpath condvar", CV_DRIVER, NULL); in oplmsu_uwioctl_iplink() 107 lpath->src_upath = NULL; in oplmsu_uwioctl_iplink() 108 lpath->status = MSU_EXT_NOTUSED; in oplmsu_uwioctl_iplink() 109 lpath->lower_queue = lbp->l_qbot; /* Set lower queue pointer */ in oplmsu_uwioctl_iplink() [all …]
|
H A D | oplmsu_ioctl_lrp.c | 53 lpath_t *lpath, *altn_lpath = NULL, *stp_lpath = NULL; in oplmsu_lrioctl_termios() local 66 lpath = (lpath_t *)lrq->q_ptr; in oplmsu_lrioctl_termios() 67 hndl_mp = lpath->hndl_mp; in oplmsu_lrioctl_termios() 69 upath = oplmsu_search_upath_info(lpath->path_no); in oplmsu_lrioctl_termios() 175 lpath->uinst = oplmsu_uinst; in oplmsu_lrioctl_termios() 176 dst_queue = lpath->hndl_uqueue; in oplmsu_lrioctl_termios() 188 oplmsu_clear_ioctl_path(lpath); in oplmsu_lrioctl_termios() 189 stp_upath = lpath->src_upath; in oplmsu_lrioctl_termios() 190 lpath->src_upath = NULL; in oplmsu_lrioctl_termios() 191 lpath->status = MSU_EXT_NOTUSED; in oplmsu_lrioctl_termios() [all …]
|
H A D | oplmsu.c | 396 lpath_t *lpath, *next_lpath; in oplmsu_detach() local 413 lpath = oplmsu_uinst->first_lpath; in oplmsu_detach() 435 while (lpath) { in oplmsu_detach() 436 if (lpath->rbuf_id) { in oplmsu_detach() 437 unbufcall(lpath->rbuf_id); in oplmsu_detach() 440 if (lpath->rtout_id) { in oplmsu_detach() 441 (void) untimeout(lpath->rtout_id); in oplmsu_detach() 444 if (lpath->rbuftbl) { in oplmsu_detach() 445 kmem_free(lpath->rbuftbl, sizeof (struct buf_tbl)); in oplmsu_detach() 448 cv_destroy(&lpath->sw_cv); in oplmsu_detach() [all …]
|
H A D | oplmsu_cmn_func.c | 230 lpath_t *lpath; in oplmsu_check_lpath_usable() local 236 lpath = oplmsu_uinst->first_lpath; in oplmsu_check_lpath_usable() 237 while (lpath) { in oplmsu_check_lpath_usable() 238 if ((lpath->hndl_uqueue != NULL) || (lpath->hndl_mp != NULL)) { in oplmsu_check_lpath_usable() 242 lpath = lpath->l_next; in oplmsu_check_lpath_usable() 346 oplmsu_set_ioctl_path(lpath_t *lpath, queue_t *hndl_queue, mblk_t *mp) in oplmsu_set_ioctl_path() argument 353 if ((lpath->hndl_uqueue == NULL) && (lpath->hndl_mp == NULL) && in oplmsu_set_ioctl_path() 354 (lpath->sw_flag == 0)) { in oplmsu_set_ioctl_path() 355 if ((lpath->status == MSU_EXT_NOTUSED) || in oplmsu_set_ioctl_path() 356 (lpath->status == MSU_EXT_ACTIVE_CANDIDATE) || in oplmsu_set_ioctl_path() [all …]
|
/titanic_50/usr/src/cmd/devfsadm/ |
H A D | sgen_link.c | 67 char lpath[PATH_MAX], buf[PATH_MAX]; in sgen_callback() local 107 (void) snprintf(lpath, PATH_MAX, in sgen_callback() 115 (void) snprintf(lpath, PATH_MAX, in sgen_callback() 119 (void) snprintf(lpath, PATH_MAX, in sgen_callback() 135 if (snprintf(lpath, sizeof (lpath), "%s/%s/c%st%sd0", SGEN_DIR, in sgen_callback() 136 di_minor_name(minor), cnum, buf) >= sizeof (lpath)) in sgen_callback() 154 if (snprintf(lpath, sizeof (lpath), "%s/%s/c%st%sd%d", SGEN_DIR, in sgen_callback() 155 di_minor_name(minor), cnum, buf, lun) >= sizeof (lpath)) in sgen_callback() 169 if (snprintf(lpath, sizeof (lpath), "%s/%s/c%st%dd%d", SGEN_DIR, in sgen_callback() 170 di_minor_name(minor), cnum, targ, lun) >= sizeof (lpath)) in sgen_callback() [all …]
|
H A D | devfsadm.c | 5667 char lpath[PATH_MAX + 1]; in create_cached_numeral() local 5706 (void) strcpy(lpath, path); in create_cached_numeral() 5711 if (get_stat_info(lpath, &sb) == DEVFSADM_FAILURE) { in create_cached_numeral() 5716 linksize = readlink(lpath, linkbuf, PATH_MAX); in create_cached_numeral() 5719 err_print(READLINK_FAILED, fcn, lpath, strerror(errno)); in create_cached_numeral()
|
/titanic_50/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_log.c | 197 char *fname, *mode, *lpath; in ndmp_log_open_file() local 211 lpath = ndmpd_get_prop(NDMP_DEBUG_PATH); in ndmp_log_open_file() 212 if ((lpath == NULL) || (*lpath == NULL)) in ndmp_log_open_file() 213 lpath = LOG_PATH; in ndmp_log_open_file() 215 if (stat64(lpath, &st) < 0) { in ndmp_log_open_file() 216 if (mkdirp(lpath, 0755) < 0) { in ndmp_log_open_file() 219 lpath, strerror(errno)); in ndmp_log_open_file() 220 lpath = "/var"; in ndmp_log_open_file() 235 fname = mk_pathname(LOG_FNAME, lpath, i); in ndmp_log_open_file() 242 fname = mk_pathname(LOG_FNAME, lpath, i + 1); in ndmp_log_open_file() [all …]
|
/titanic_50/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_main.c | 114 char *lpath, *lpend, *nlpath; in kmdb_modpath2lpath() local 123 lpend = lpath = mdb_zalloc(lpsz, UM_SLEEP); in kmdb_modpath2lpath() 148 if (lpend != lpath) in kmdb_modpath2lpath() 151 nlpath = strdup(lpath); in kmdb_modpath2lpath() 152 mdb_free(lpath, lpsz); in kmdb_modpath2lpath() 234 char *lpath; in kmdb_init() local 237 (lpath = kmdb_modpath2lpath(kav->kav_modpath)) != NULL) { in kmdb_init() 238 mdb_set_lpath(lpath); in kmdb_init() 239 strfree(lpath); in kmdb_init()
|
/titanic_50/usr/src/cmd/hal/probing/printer/ |
H A D | probe-printer.c | 87 char path[MAXPATHLEN], lpath[MAXPATHLEN]; in prnio_device_name() local 91 memset(lpath, 0, sizeof (lpath)); in prnio_device_name() 92 if ((readlink(path, lpath, sizeof (lpath)) > 0) && in prnio_device_name() 93 (strstr(lpath, devfs_path) != NULL)) { in prnio_device_name()
|
/titanic_50/usr/src/lib/libpkg/common/ |
H A D | srchcfile.c | 58 static char lpath[PATH_MAX]; /* for ept->path */ variable 147 lpath[0] = '\0'; in srchcfile() 148 lpath[sizeof (lpath)-1] = '\0'; in srchcfile() 251 ept->path = lpath; in srchcfile() 254 COPYPATH(lpath, cpath_start, cpath_len); in srchcfile()
|
/titanic_50/usr/src/common/fs/ |
H A D | ufsops.c | 148 char lpath[MAXPATHLEN]; in find() local 149 char *lpathp = lpath; in find() 160 bzero(lpath, sizeof (lpath)); in find() 161 bcopy(path, lpath, strlen(path)); in find() 165 r = (lpathp == lpath); in find() 193 lpathp = lpath; in find() 200 lpathp = lpath; in find()
|
/titanic_50/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_statd.c | 950 char lpath[MAXPATHLEN]; in create_symlink() local 955 (void) strcpy(lpath, todir); in create_symlink() 956 (void) strcat(lpath, "/"); in create_symlink() 957 (void) strcat(lpath, lname); in create_symlink() 962 if (symlink(rname, lpath) < 0) { in create_symlink() 1113 char lpath[MAXPATHLEN]; in count_symlinks() local 1128 (void) sprintf(lpath, "%s%s", dir, dirp->d_name); in count_symlinks() 1129 if (is_symlink(lpath)) { in count_symlinks() 1133 n = readlink(lpath, rname, MAXNAMELEN); in count_symlinks() 1138 "%s\n", lpath); in count_symlinks()
|
/titanic_50/usr/src/stand/lib/fs/ufs/ |
H A D | ufsops.c | 173 char lpath[MAXPATHLEN]; in find() local 174 char *lpathp = lpath; in find() 183 bzero(lpath, sizeof (lpath)); in find() 184 bcopy(path, lpath, strlen(path)); in find() 188 r = (lpathp == lpath); in find() 220 lpathp = lpath; in find() 227 lpathp = lpath; in find()
|
/titanic_50/usr/src/lib/libvolmgt/common/ |
H A D | volmgt_on_private.c | 492 char lpath[2 * (MAXNAMELEN+1)]; in get_media_info() local 502 (void) sprintf(lpath, "%s/%s", mnt_dir, in get_media_info() 504 if (lstat64(lpath, &sb) < 0) { in get_media_info() 510 if ((lb_len = readlink(lpath, linkbuf, in get_media_info()
|
/titanic_50/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo_usb.c | 105 char path[MAXPATHLEN], lpath[MAXPATHLEN]; in get_usb_devlink() local 109 memset(lpath, 0, sizeof (lpath)); in get_usb_devlink() 110 if ((readlink(path, lpath, sizeof (lpath)) > 0) && in get_usb_devlink() 111 (strstr(lpath, devfs_path) != NULL)) { in get_usb_devlink()
|
/titanic_50/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_utils.c | 69 static fpcfga_recur_t lookup_dev(const char *lpath, void *arg); 78 fpcfga_recur_t (*fcn)(const char *lpath, void *arg); 292 fpcfga_recur_t (*fcn)(const char *lpath, void *arg)) in recurse_dev() argument 991 lookup_dev(const char *lpath, void *arg) in lookup_dev() argument 996 if (realpath(lpath, ppath) == NULL) { in lookup_dev() 1007 if ((pmtp->log = strdup(lpath)) == NULL) { in lookup_dev()
|
H A D | cfga_fp.h | 508 fpcfga_recur_t (*fcn)(const char *lpath, void *arg));
|
/titanic_50/usr/src/uts/sun4u/opl/sys/oplmsu/ |
H A D | oplmsu.h | 208 struct lower_path_table *lpath; member
|
/titanic_50/usr/src/cmd/luxadm/ |
H A D | hotplug.c | 2657 char *lpath, *ptr, *buf_ptr, buf[MAXNAMELEN], dev[MAXNAMELEN]; in h_print_logical_nodes() local 2666 lpath = dlist->logical_path; in h_print_logical_nodes() 2667 if ((ptr = strrchr(lpath, 'c')) == NULL) in h_print_logical_nodes() 2686 lpath = dlist->logical_path; in h_print_logical_nodes() 2687 if (strstr(lpath, DEV_TAPE_DIR)) { in h_print_logical_nodes() 2688 if ((ptr = strrchr(lpath, '/')) == NULL) in h_print_logical_nodes()
|
/titanic_50/usr/src/cmd/print/scripts/ |
H A D | ppdmgr | 1039 lpath="${1%/*/*}" 1065 lpath="${1%/*/*}"
|
/titanic_50/usr/src/lib/libshare/common/ |
H A D | libshare.c | 343 xmlChar *lpath = NULL; in set_legacy_timestamp() local 355 lpath = xmlGetProp(node, (xmlChar *)"path"); in set_legacy_timestamp() 356 if (lpath != NULL && in set_legacy_timestamp() 357 xmlStrcmp(lpath, (xmlChar *)path) == 0) { in set_legacy_timestamp() 358 xmlFree(lpath); in set_legacy_timestamp() 361 if (lpath != NULL) in set_legacy_timestamp() 362 xmlFree(lpath); in set_legacy_timestamp()
|
/titanic_50/usr/src/lib/libproc/common/ |
H A D | Pcontrol.c | 2844 char lpath[PATH_MAX]; in read_lfile() local 2850 (void) snprintf(lpath, sizeof (lpath), "%s/%d/%s", procfs_path, in read_lfile() 2852 if ((fd = open(lpath, O_RDONLY)) < 0 || fstat64(fd, &statb) != 0) { in read_lfile()
|
/titanic_50/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | scsi_vhci.c | 3163 mdi_pathinfo_t *lpath; in vhci_intr() local 3177 lpath = vpkt->vpkt_path; in vhci_intr() 3200 mdi_pi_get_path_instance(lpath); in vhci_intr() 3446 MDI_PI_ERRSTAT(lpath, MDI_PI_TRANSERR); in vhci_intr()
|