/illumos-gate/usr/src/cmd/zinject/ |
H A D | translate.c | 447 translate_device(const char *pool, const char *device, err_type_t label_type, argument 456 * Given a device name or GUID, create an appropriate injection record 462 record->zi_guid = strtoull(device, &end, 16); 464 tgt = zpool_find_vdev(zhp, device, &isspare, &iscache, NULL); 467 (void) fprintf(stderr, "cannot find device '%s' in " 468 "pool '%s'\n", device, pool);
|
H A D | zinject.c | 31 * There are two basic types of faults: device faults and data faults. 37 * option takes a path or vdev GUID to uniquely identify the device within a 40 * EIO failures, any attempt to read data from the device will return EIO, but 41 * subsequent attempt to reopen the device will succeed. For ENXIO failures, 42 * any attempt to read from the device will return EIO, but any attempt to 43 * reopen the device will also return ENXIO. 46 * of all the labels for the specified device. 50 * zinject -d device [-e errno] [-L <uber | nvlist | pad1 | pad2>] pool 233 "\tzinject -d device [-e errno] [-L <nvlist|uber|pad1|pad2>] [-F]\n" 236 "\t\tInject a fault into a particular device o 660 char *device = NULL; local [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | piclkstat.c | 336 char device[20]; local 346 (void) snprintf(device, sizeof (device), "/dev/tty%c", instance+'a'); 347 fd = open(device, O_RDONLY|O_NDELAY|O_NONBLOCK|O_NOCTTY);
|
H A D | piclfrutree.c | 2417 frutree_device_args_t *device = NULL; local 2424 device = *(frutree_device_args_t **)devp; 2425 if (device == NULL) { 2460 device->nodeh = refhdl; 2461 device->device_tblhdl = dev_tblhdl; 2462 device->env_tblhdl = env_tblhdl; 2463 device->first = NULL; 2464 device->last = NULL; 2465 device->create_cache = B_FALSE; 2469 device)) ! 2481 create_fru_children(frutree_frunode_t *frup, frutree_device_args_t device) argument 2561 frutree_device_args_t *device = NULL; local 3614 frutree_device_args_t *device = NULL; local 3925 frutree_device_args_t device; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | hostconfig.c | 263 fprintf(stdout, "Trying device %s\n", 390 bp_whoami(device, addr) 391 char *device; 401 fprintf(stdout, "bp_whoami on interface %s addr %s\n", device, 405 if (get_ifdata(device, &lookupaddr, &if_netmask) == -1)
|
H A D | syncinit.c | 104 char cnambuf[DLPI_LINKNAME_MAX], device[DLPI_LINKNAME_MAX]; local 126 "syncinit: invalid device name (too long) %s\n", argv[0]); 136 "syncinit: %s missing minor device number\n", cnambuf); 147 (void) dlpi_parselink(cnambuf, device, &ppa); 148 (void) printf("device: %s ppa: %u\n", device, ppa);
|
/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | rmtlib.c | 157 char *tuser, *host, *device; local 188 device = strchr(host, ':'); 189 if (device) 190 *device = 0; /* throw away device name */ 248 * the device, re-opening it if necessary. 465 * or if we are opening up a full path (i.e. device)
|
/illumos-gate/usr/src/cmd/fstyp/ |
H A D | fstyp.c | 55 static void run_legacy_cmds(int fd, char *device, int vflag); 62 (void) fprintf(stderr, gettext("Usage: fstyp [-av] <device>\n")); 115 * Open device, find partition offset if requested 254 * Separates dos notation device spec into device and drive number 410 run_legacy_cmds(int fd, char *device, int vflag) argument 424 arg2 = device; 426 arg1 = device;
|
/illumos-gate/usr/src/uts/common/io/lvm/softpart/ |
H A D | sp_ioctl.c | 39 * MD_IOCGETDEVS - get the device the soft partition is built on. 232 md_dev64_t device; local 284 * underlying device is a mirror. 290 device = un->un_dev; 291 if ((md_getmajor(device) != md_major) && 293 device = md_resolve_bydevid(mnum, device, un->un_key); 297 * underlying device so that it can take appropriate action if needed. 301 if (md_layered_open(mnum, &device, MD_OFLG_FROMIOCTL)) { 303 mnum, device); 374 md_dev64_t device; local [all...] |
/illumos-gate/usr/src/uts/i86pc/sys/ |
H A D | biosdisk.h | 72 unsigned char device; member in struct:interface_path::__anon9416
|
/illumos-gate/usr/src/cmd/lp/include/ |
H A D | printers.h | 96 char *device; /* printer port full path name */ member in struct:PRINTER 153 #define BAD_DEVDIAL 0x0004 /* no device or dial information */
|
/illumos-gate/usr/src/boot/sys/boot/fdt/dts/arm/ |
H A D | db88f5182.dts | 88 device-width = <1>; 104 device-width = <1>;
|
H A D | db88f5281.dts | 88 device-width = <1>; 104 device-width = <1>;
|
/illumos-gate/usr/src/lib/efcode/packages/ |
H A D | populate.c | 133 device_t *device; local 141 CONVERT_PHANDLE(env, device, d); 142 if (!is_device_builtin_package(env, device)) {
|
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/sol_ofs/ |
H A D | sol_cma.h | 315 if (srcid->device) { 316 newid->device = 317 sol_cma_acquire_device(srcid->device->node_guid);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute.c | 142 static char *device = NULL; /* interface name */ variable 355 device = optarg; 356 if_index = if_nametoindex((const char *)device); 368 device = (char *)malloc(LIFNAMSIZ + 1); 369 if (device == NULL) { 375 device = if_indextoname(if_index, device); 376 if (device != NULL) { 377 device[LIFNAMSIZ] = '\0'; 389 if (device 1026 find_device(struct ifaddrlist *al, int len, char *device) argument [all...] |
/illumos-gate/usr/src/cmd/pcitool/ |
H A D | pcitool.c | 50 /* First 16 longs of device PCI config header. */ 127 static int open_node(char *device, pcitool_uiargs_t *input_args_p); 193 open_node(char *device, pcitool_uiargs_t *input_args_p) argument 207 prefix = (strstr(device, slash_devices) == device) ? "" : slash_devices; 211 if (strstr(device, PCI_MINOR_INTR) == 212 device + (strlen(device) - strlen(PCI_MINOR_INTR))) { 219 if (strstr(device, PCI_MINOR_REG) == 220 device [all...] |
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate3.c | 126 * checks if the invoking user is local to the device 177 * Checks if the specified user has authorization for the device 254 (void) printf("device=%s%s", dm->dmap_devname, KV_DELIMITER); 290 (void) printf(gettext("device: %s "), dm->dmap_devname); 337 dprintf("Unable to find %s device files\n", 350 dprintf("device name %s is too long.\n", 374 * for this free device, check if - 377 * device 407 * the device is allocated. 436 * at which the device i 488 list_devices(int optflag, uid_t uid, char *device, char *zonename) argument 1353 allocate(int optflag, uid_t uid, char *device, char *zonename) argument 1431 deallocate(int optflag, uid_t uid, char *device, char *zonename) argument [all...] |
/illumos-gate/usr/src/cmd/who/ |
H A D | who.c | 121 static char *mytty; /* holds device user is on */ 479 char device[sizeof (utmpp->ut_line) + 1]; local 533 * Get and massage device 536 (void) strcpy(device, " ."); 538 (void) strncpy(device, utmpp->ut_line, 540 device[sizeof (utmpp->ut_line)] = '\0'; 566 w, device, time_buf); 570 * Stat device for idle time
|
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/ |
H A D | xgehal-channel.c | 27 #include "xgehal-device.h" 260 * @devh: HAL device, pointer to xge_hal_device_t structure. 267 * Open communication channel with the device. 304 xge_hal_device_t *device = (xge_hal_device_t *)devh; local 306 xge_assert(device); 312 xge_list_for_each(item, &device->free_channels) { 384 xge_list_insert(&channel->item, &device->fifo_channels); 388 xge_list_insert(&channel->item, &device->ring_channels);
|
/illumos-gate/usr/src/cmd/luxadm/ |
H A D | qlgcupdate.c | 249 * Get count of, and names of PCI slots with ifp device control 278 /* Check if the device is valid */ 697 * Get the boot device. Cannot load FCode to current boot device. 707 char *p = NULL, *p1 = NULL; /* p = full device, p1 = chunk to rm */ 723 "Error: Cannot get boot device, check %s.\n"), MNTTAB); 739 "\nWarning: Cannot read boot device link, check %s.\n"), MNTTAB); 741 "Do not upgrade FCode on adapters controlling the boot device.\n")); 746 * Copy boot device path to bootpath. First remove leading 747 * path junk (../../..) then if it's an ifp device, cho 768 q_load_file(int fcode_fd, char *device) argument 975 fcode_load_file(int fcode_fd, char *device, int *fcio_errno) argument [all...] |
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | io.c | 112 * Find the PCI device number of this PCI device. If no device number can 129 * Find the PCI device number of this PCI device. If no device number can 243 * Find the sbus slot number of this Sbus device. If no slot number can 435 char device[MAXSTRLEN]; local 442 /* Find the device node using upa-portid/portid */ 450 (void) sprintf(device, " [all...] |
/illumos-gate/usr/src/uts/common/io/audio/drv/audiovia823x/ |
H A D | audiovia823x.c | 76 8, /* granularity of device */ 91 4, /* granularity of device */ 544 uint16_t pci_command, vendor, device; local 565 device = pci_config_get16(pcih, PCI_CONF_DEVID); 566 if ((vendor != VIA_VENDOR_ID) || (device != VIA_8233_ID && 567 device != VIA_8233A_ID)) { 569 "(vendor=%x, dev=%x)", vendor, device); 589 if ((device == VIA_8233A_ID) || 590 (device == VIA_8233_ID && pci_revision == 0x40)) {
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | putdev.c | 39 * _adddevtabrec() Add a record to the device table 40 * _putdevtabrec() Write a record to the device table 41 * _moddevtabrec() Modify a device-table record 42 * _rmdevtabrec() Remove a device-table record 43 * _rmdevtabattrs() Remove attributes from a device-table record 44 * oam_devtab File descriptor of the open device table 81 * TDTABNM Name of the temporary device table (in the 92 * lkdevtab Locks the device table 93 * unlkdevtab Unlocks the device table 94 * mkdevtabent Builds a device 848 _moddevtabrec( char *device, char **attrval) argument 1020 _rmdevtabrec(char *device) argument 1086 _rmdevtabattrs( char *device, char **attributes, char ***notfounds) argument [all...] |
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgtrans.c | 68 extern char *devattr(char *device, char *attribute); 71 extern int getvol(char *device, char *label, int options, char *prompt); 72 extern int _getvol(char *device, char *label, int options, char *prompt, 76 extern int ds_ginit(char *device); 116 static int wdsheader(struct dm_buf *, char *src, char *device, 154 pkghead(char *device) argument 162 if (device == NULL) 164 else if ((device[0] == '/') && !isdir(device)) { 165 pkgdir = device; 925 wdsheader(struct dm_buf *hdr, char *src, char *device, char **pkg, PKCS7 *sig) argument 948 logerr(pkg_gt(MSG_OPEN), device, errno); local 954 logerr(pkg_gt(MSG_OPEN), device, errno); local [all...] |