/illumos-gate/usr/src/uts/sun4v/promif/ |
H A D | promif_node.c | 216 pnode_t device; local 222 device = OBP_BADNODE; 279 device = np; 291 if (device == OBP_BADNODE) { 292 CIF_DBG_NODE("device not found\n\n"); 294 CIF_DBG_NODE("returning 0x%x\n\n", device); 297 return (device);
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | partition.c | 538 * disk -The disk device to be evaluated for partitions 541 * opath -The device path 560 char *device; /* name of fixed disk drive */ local 628 if ((device = malloc(len)) == NULL) { 629 if (device) 630 free(device); 634 (void) snprintf(device, len, "%s", disk->aliases->alias); 636 if ((ret = libfdisk_init(&epp, device, &iparts[i], 652 free(device); 656 free(device); [all...] |
/illumos-gate/usr/src/lib/librdc/common/ |
H A D | rdcrules.c | 414 mounted(char *device) argument 426 for (s = target; i < NSC_MAXPATH && (*s = *device++); i++) { 427 if (*s == 'r' && rdsk == 0 && strncmp(device, "dsk/", 4) == 0) 480 dgettext("librdc", "%s is not a character device"), 495 "%s is not a character device"), rdc->sfile);
|
/illumos-gate/usr/src/cmd/wall/ |
H A D | wall.c | 341 static char device[LMAX + 6]; local 382 s = &device[0]; 383 (void) snprintf(s, sizeof (device), "/dev/%.*s", LMAX, p->ut_line); 385 /* check if the device is really a tty */ 395 "Cannot send to device %.*s %s\n",
|
/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/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);
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | pci.c | 209 uint32_t class, uint16_t vendor, uint16_t device, 228 (device == driver->ids[i].dev_id)) { 268 uint16_t vendor, device; local 299 else if (!(hdr_type & 0x80)) /* not a multi-function device */ 307 device = (l >> 16) & 0xffff; 316 vendor, device); 333 scan_drivers(type, class, vendor, device, first_driver, dev); 347 dev->dev_id = device; 390 * Set device to be a busmaster in case BIOS neglected to do so. 403 "The PCI BIOS has not enabled this device!\ 207 scan_drivers( int type, uint32_t class, uint16_t vendor, uint16_t device, const struct pci_driver *last_driver, struct pci_device *dev) argument [all...] |
/illumos-gate/usr/src/cmd/pcitool/ |
H A D | pcitool_ui.h | 46 #define PROBEDEV_FLAG 0x8 /* Probe a specific device */ 97 uint8_t device; member in struct:uiargs
|
/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);
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | dump_rcm.c | 29 * RCM module for managing dump device during dynamic 57 char device[MAXPATHLEN]; member in struct:dump_conf 68 * dump device, the cache is multi-entry since there 151 (void) rcm_unregister_interest(hdl, dc->device, 0); 184 * Relocate dump device to maintain availability during suspension. 236 * forced, attempt to relocate the dump device. 317 * to relocate dump to swap. For dump device on 329 * This state may get out of sync for a dump device on swap, 332 * the same device during a rollback. 343 *errstr = strdup(gettext("unable to relocate dump device")); [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | syncloop.c | 101 char device[DLPI_LINKNAME_MAX]; local 163 "syncloop: invalid device name (too long) %s\n", 182 "syncloop: %s missing minor device number\n", portname); 188 "syncloop: invalid device name (too long) %s\n", 199 (void) dlpi_parselink(portname, device, &ppa); 205 (void) printf("[ Data device: %s | Control device: %s, ppa=%u ]\n", 206 dnambuf, device, ppa);
|
/illumos-gate/usr/src/cmd/diskscan/ |
H A D | diskscan.c | 28 * performs a verification pass over a device specified on command line; 48 static void scandisk(char *device, int devfd, int writeflag); 58 static struct dk_geom dkg; /* physical device boot info */ 71 int devfd; /* device file descriptor */ 77 char *device; local 115 device = argv[optind]; 117 if (stat(device, &statbuf)) { 119 "%s: invalid device %s, stat failed\n", progname, device); 125 "%s: device 169 scandisk(char *device, int devfd, int writeflag) argument [all...] |
/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_hsp.c | 390 * Iterate each device and its components and see if the 394 * If a spare cannot be found for any device component, 397 * If spares are found for all device components, add 491 * examine device component slices and see if the HSP already 499 devconfig_t *device = (devconfig_t *)iter->obj; local 500 dlist_t *components = devconfig_get_components(device); 505 error = get_hbas_and_disks_used_by_volume(device, &hbas, &disks); 556 * and associate the HSP with each device in the input list. 622 * PURPOSE: Examine each device's slice components and build a list 675 * large enough for the device component [all...] |
/illumos-gate/usr/src/cmd/fmthard/ |
H A D | fmthard.c | 207 "fmthard: Cannot stat device %s\n", 214 "fmthard: %s must be a raw device.\n", 220 (void) fprintf(stderr, "fmthard: Cannot open device %s - %s\n", 379 display(struct dk_geom *geom, struct extvtoc *vtoc, char *device) argument 387 (void) printf("* %s default partition map\n", device); 429 display64(struct dk_gpt *efi, char *device) argument 436 (void) printf("* %s default partition map\n", device); 682 raw-device\n"); 687 -n volumename | -s datafile [ -d arguments] raw-device\n");
|
/illumos-gate/usr/src/cmd/rmformat/ |
H A D | rmformat.h | 121 * Condition to be checked for a device 152 typedef struct device { struct
|
/illumos-gate/usr/src/cmd/avs/rdc/ |
H A D | sndrsubr.c | 63 mounted(char *device) argument 74 for (s = target; i < NSC_MAXPATH && (*s = *device++); i++) { 75 if (*s == 'r' && rdsk == 0 && strncmp(device, "dsk/", 4) == 0)
|
/illumos-gate/usr/src/cmd/fwflash/plugins/transport/common/ |
H A D | sd.c | 114 int fw_readfw(struct devicelist *device, char *filename); 115 int fw_writefw(struct devicelist *device); 123 static int sd_idtfy_custmz(struct devicelist *device, char *sp); 134 "%s: not writing firmware for device %s to file %s\n", 174 gettext("%s: unable to open device %s\n"), 232 * The fw_identify() function walks the device 237 * to give the device when we add it to the fw_devices list. 263 /* Just in case we've got an FC-attached device on sparc */ 286 logmsg(MSG_INFO, "unable to get device path for " 291 * We check if this is removable device, i 713 sd_idtfy_custmz(struct devicelist *device, char *sp) argument [all...] |
/illumos-gate/usr/src/cmd/hal/addons/network-devices/ |
H A D | common.c | 168 char *device, char *community) 214 if ((uri != NULL) || (device != NULL)) 216 "printer.device", (uri ? uri : device), &error); 167 add_network_printer(LibHalContext *ctx, char *base, char *hostaddr, char *device, char *community) argument
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | device_store.c | 109 hal_device_store_init (HalDeviceStore *device) argument 149 emit_device_property_changed (HalDevice *device, argument 158 device, key, added, removed); 162 emit_device_capability_added (HalDevice *device, argument 169 device, capability); 173 hal_device_store_add (HalDeviceStore *store, HalDevice *device) argument 177 if (strncmp(device->udi, buf, sizeof (buf) - 1) != 0) { 184 g_object_ref (device)); 186 g_signal_connect (device, "property_changed", 188 g_signal_connect (device, "capability_adde 198 hal_device_store_remove(HalDeviceStore *store, HalDevice *device) argument 256 hal_device_store_print_foreach_fn(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 396 match_device_async(HalDeviceStore *store, HalDevice *device, const char *key, gboolean removed, gboolean added, gpointer user_data) argument 421 store_changed(HalDeviceStore *store, HalDevice *device, gboolean added, gpointer user_data) argument 461 HalDevice *device; local [all...] |
/illumos-gate/usr/src/uts/common/io/audio/drv/audiovia97/ |
H A D | audiovia97.c | 71 8, /* granularity of device */ 86 4, /* granularity of device */ 484 uint16_t pci_command, vendor, device; local 504 device = pci_config_get16(pcih, PCI_CONF_DEVID); 506 device != VIA_82C686) { 508 "(vendor=%x, dev=%x)", vendor, device);
|
/illumos-gate/usr/src/uts/common/xen/public/hvm/ |
H A D | hvm_op.h | 40 /* PCI INTx identification in PCI topology (domain:bus:device:intx). */ 41 uint8_t domain, bus, device, intx; member in struct:xen_hvm_set_pci_intx_level 53 /* ISA device identification, by ISA IRQ (0-15). */ 112 HVMMEM_mmio_dm, /* Reads and write go to the device model */
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_intr.c | 30 * This file manages the interrupts for a hybrid I/O (hio) device. 76 nxge_ldg_t *group; /* The logical device group data. */ 166 nxge_ldg_t *group; /* The logical device group data. */ 323 nxge_ldg_t *group; /* The logical device group data. */ 424 nxge_ldg_t *group; /* The logical device group data. */ 544 * For each device assigned, the content of each interrupts 545 * property is its logical device group. 762 * Add a transmit device interrupt. 828 * Add a transmit device interrupt. 911 nxge_ldv_t *device; local [all...] |
/illumos-gate/usr/src/uts/common/sys/ib/clients/of/rdma/ |
H A D | rdma_cm.h | 48 * Upon receiving a device removal event, users must destroy the associated 49 * RDMA identifier and release all resources allocated with the device. 136 struct ib_device *device; member in struct:rdma_cm_id 184 * associated RDMA device, if needed. 191 * be bound to a local RDMA device. 198 * rdma_cm_id will be bound to a local device.
|
/illumos-gate/usr/src/lib/libadm/common/ |
H A D | devreserv.c | 38 * devfree() Free a reserved device 87 * getlocks() Get the device locks from the device-lock file 88 * islocked() Determines if a device is locked 89 * putlocks() Close the device locks w/ update 90 * freelkfile() Close the device locks w/o updating 101 static char *islocked(char *); /* Determines if a device is locked */ 116 * Determines the pathname of the device reservation table file 161 * The _openlkfile() function opens a device-reservation table file 202 * Function closes the device 733 islocked(char *device) argument 798 unreserv(int key, char *device) argument 1034 devfree( int key, char *device) argument [all...] |
H A D | devtab.c | 36 * Contains functions that deal with the device table and are not for 40 * _opendevtab() Opens the device table for commands 41 * _setdevtab() Rewinds the open device table 42 * _enddevtab() Closes the open device table 43 * _getdevtabent() Gets the next entry in the device table 44 * _freedevtabent() Frees memory allocated to a device-table entry 45 * _getdevrec() Gets a specific record from the device table 46 * _devtabpath() Get the pathname of the device table file 103 * to see if the two structures describe the same device. 107 * and minor device number 909 _getdevrec(char *device) argument [all...] |