/illumos-gate/usr/src/lib/libadm/common/ |
H A D | getvol.c | 63 static char *cdevice; /* character device name */ 64 static char *pname; /* device presentation name */ 72 * 1 - device not accessable 73 * 2 - unknown device (devattr failed) 94 getvol(char *device, char *label, int options, char *prompt) argument 96 return (_getvol(device, label, options, prompt, NULL)); 100 _getvol(char *device, char *label, int options, char *prompt, char *norewind) argument 106 cdevice = devattr(device, "cdevice"); 108 cdevice = devattr(device, "pathname"); 110 return (2); /* bad device */ 287 insert(char *device, char *label, int options, char *prompt) argument 459 doremovecmd(char *device, int echo) argument [all...] |
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/uts/intel/io/heci/ |
H A D | heci_interface.c | 72 * read_heci_register - Read a byte from the heci device 74 * @device: the device structure 80 read_heci_register(struct iamt_heci_device *device, argument 83 return (ddi_get32(device->io_handle, 84 (uint32_t *)(long)(device->mem_addr + offset))); 88 * write_heci_register - Write 4 bytes to the heci device 90 * @device: the device structure 95 write_heci_register(struct iamt_heci_device *device, unsigne argument [all...] |
H A D | heci_intr.c | 97 * heci_isr_interrupt - The ISR of the HECI device 100 * @dev_id: pointer to the device structure 107 struct iamt_heci_device *device = local 110 mutex_enter(&device->device_lock); 112 if (device->heci_state == HECI_POWER_DOWN) { 113 mutex_exit(&device->device_lock); 116 device->host_hw_state = read_heci_register(device, H_CSR); 118 if ((device->host_hw_state & H_IS) != H_IS) { 119 mutex_exit(&device [all...] |
/illumos-gate/usr/src/uts/intel/io/pciex/hotplug/ |
H A D | pciehpc_acpi.c | 66 static void pciehpc_acpi_notify_handler(ACPI_HANDLE device, uint32_t val, 342 /* make sure the slot has a device present */ 407 /* make sure the slot has a device present */ 431 * as device function (dev=0,func=0). 456 * Install event hanlder for events on the device function object. 457 * (Note: Eject device event (hot-remove) is delivered on this object) 460 * on all of the 8 possible device functions so, subscribing to 475 pciehpc_acpi_notify_handler(ACPI_HANDLE device, uint32_t val, void *context) argument 489 * get the state of the device (from _STA method) 494 cmn_err(CE_WARN, "failed to get device statu [all...] |
/illumos-gate/usr/src/cmd/zinject/ |
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/boot/installgrub/ |
H A D | installgrub.h | 66 ig_device_t device; member in struct:_ig_data
|
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.h | 39 /* partitioning type for device */ 56 char *path; /* device name */ 66 /* boot device data */ 90 ib_device_t device; /* boot device */ member in struct:_ib_data
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | sysfiles.c | 40 * also manage new file Devconfig, allows per-device setup. 120 setdevcfg(char *service, char *device) argument 122 scancfg(service, device); 230 scancfg(char *service, char *device) argument 234 /* (re)initialize device-specific information */ 247 if (namematch("device=", tok, device)) { 288 * given a label (e.g., "service=", "device="), a name ("cu", "uucico"),
|
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/cherrystone/common/ |
H A D | workfile.c | 100 * Do a depth-first walk of a device tree and 209 picl_nodehdl_t *device) 240 err = picl_get_propval(reference_property, &(*device), 381 * We call do_devinfo() in order to use the libdevinfo device tree instead of 382 * OBP's device tree. Ignore its return value and use our exit_code instead. 384 * because the device tree does not keep track of the status property for the 387 * device failures. 739 * a model, then we just describe what the device 747 "%s", "device on pci-bridge"); 816 * children of something like a scsi device 208 fill_device_from_id(picl_nodehdl_t device_id, char *assoc_id, picl_nodehdl_t *device) argument [all...] |
/illumos-gate/usr/src/grub/grub-0.97/lib/ |
H A D | device.c | 0 /* device.c - Some helper functions for OS devices and BIOS drives */ 47 # define HDIO_GETGEO 0x0301 /* get device geometry */ 73 # define BLKGETSIZE _IO(0x12,96) /* return device size */ 136 #include <device.h> 363 0 /* char device */ 406 0 /* char device */ 443 check_device (const char *device) argument 449 if (*device == 0) 452 fp = fopen (device, "r"); 473 /* Error opening the device [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | picllibdevinfo.c | 410 probe_libdevinfo(frutree_frunode_t *frup, frutree_device_args_t ** device, argument 467 if ((rc = create_port_config_info(&list, *device)) != PICL_SUCCESS) {
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | ip_anon_rcm.c | 100 char device[IP_REG_SIZE]; member in struct:ip_status 378 tentry->device); 380 tentry->device, 0) != 0) { 397 tentry->device); 399 tentry->device, 0, NULL) != 410 tentry->device); 423 tentry->device); 425 tentry->device, 0) != 0) { 437 tlist->device, tlist->flags); 459 tlist->device, [all...] |
H A D | rcm_impl.h | 155 int type; /* resource(device) type */ 156 char device[MAXPATHLEN]; /* name of device or resource */ member in struct:__anon1307::__anon1308
|
/illumos-gate/usr/src/cmd/du/ |
H A D | du.c | 94 dev_t device); 278 descend(char *curname, int curfd, int *retcode, dev_t device) argument 338 if (device) { 339 if (dflg && stb.st_dev != device) { 345 device = stb.st_dev; 401 blocks += descend(NULL, fd, retcode, device); 481 retval = descend(ebase + 1, 0, retcode, device);
|
/illumos-gate/usr/src/cmd/rmt/ |
H A D | rmt.c | 120 static char device[MAXPATHLEN]; variable 420 getstring(device, sizeof (device)); 421 DEBUG1("rmtd: C %s\n", device); 431 getstring(device, sizeof (device)); 433 DEBUG2("rmtd: O %s %s\n", device, mode); 442 tape = open(device, O_LARGEFILE |
|
/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/cmd/fwflash/common/ |
H A D | fwflash.c | 78 static int fwflash_update(char *device, char *filename, int flags); 79 static int fwflash_read_file(char *device, char *filename); 533 * verifier for this device has already been loaded. If it 578 "device\n")); 777 * each flashable device, which is added to fw_devices 797 gettext("Unable to take device tree snapshot: %s\n"), 821 /* only bump startidx if we've found at least one device */ 873 fwflash_update(char *device, char *filename, int flags) argument 886 * through the device list looking for the device whic 1007 fwflash_read_file(char *device, char *filename) argument [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | hald.c | 68 * @brief The HAL daemon manages persistent device objects available through 78 addon_terminated (HalDevice *device, guint32 exit_type, argument 82 HAL_INFO (("in addon_terminated for udi=%s", device->udi)); 89 if (hal_device_inc_num_ready_addons (device)) { 90 if (hal_device_are_all_addons_ready (device)) { 91 manager_send_signal_device_added (device); 100 gdl_store_changed (HalDeviceStore *store, HalDevice *device, argument 106 HAL_INFO (("Added device to GDL; udi=%s", hal_device_get_udi(device))); 108 if ((addons = hal_device_property_get_strlist (device, "inf 145 gdl_property_changed(HalDeviceStore *store, HalDevice *device, const char *key, gboolean added, gboolean removed, gpointer user_data) argument 159 gdl_capability_added(HalDeviceStore *store, HalDevice *device, const char *capability, gpointer user_data) argument [all...] |
H A D | hald_runner.c | 57 HalDevice *device; member in struct:__anon622 73 HalDevice *device = user_data; local 75 if (rp->device == device) { 84 running_processes_remove_device (HalDevice *device) argument 86 g_hash_table_foreach_remove (running_processes, rprd_foreach, device); 90 runner_device_finalized (HalDevice *device) argument 92 running_processes_remove_device (device); 124 rp->cb (rp->device, 0, 0, NULL, rp->data1, rp->data2); 236 add_property_to_msg (HalDevice *device, HalPropert argument 340 add_first_part(DBusMessageIter *iter, HalDevice *device, const gchar *command_line, char **extra_env) argument 365 hald_runner_start(HalDevice *device, const gchar *command_line, char **extra_env, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument 481 hald_runner_run_method(HalDevice *device, const gchar *command_line, char **extra_env, gchar *input, gboolean error_on_stderr, guint32 timeout, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument 532 hald_runner_run(HalDevice *device, const gchar *command_line, char **extra_env, guint timeout, HalRunTerminatedCB cb, gpointer data1, gpointer data2) argument 544 hald_runner_kill_device(HalDevice *device) argument 574 hald_runner_kill_all(HalDevice *device) argument [all...] |
/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal-storage-shared.c | 251 permission_denied_volume_ignore (const char *device) argument 254 fprintf (stderr, "Device has %s volume.ignore set to TRUE. Refusing to mount.\n", device); 264 LibHalVolume *volume, LibHalDrive *drive, const char *device, 291 printf ("device = %s\n", device); 304 * When device allocation is enabled (bsmconv or TX), we 307 * device allocation program. 310 permission_denied_volume_ignore (device); 320 /* check hal's mtab file to verify the device to unmount is actually mounted by hal */ 375 if (strcmp (line_elements[0], device) 259 handle_unmount(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalVolume *volume, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, gboolean option_lazy, gboolean option_force, DBusConnection *system_bus) argument 533 handle_eject(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, gboolean closetray, DBusConnection *system_bus) argument 702 audit_volume(const adt_export_data_t *imported_state, au_event_t event_id, int result, const char *auth_used, const char *mount_point, const char *device, const char *options) argument [all...] |
/illumos-gate/usr/src/cmd/listen/ |
H A D | nlps_serv.c | 659 char device[20]; local 684 *device = '\0'; 693 sprintf(device, "%.9s%02.02d", prefix, minor(sbuf.st_rdev)); 695 sprintf(device, "%.8s%03.03d", prefix, minor(sbuf.st_rdev)); 696 DEBUG((9, "Device: %s", device)); 701 strncpy(utline.ut_line, device, sizeof (utline.ut_line) - 1);
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgchk/ |
H A D | main.c | 83 "\t%s -d device [-f][-l|v] [-p path[, ...] | " \ 114 char *device; variable 337 /* Check for root dir and device dir if set */ 346 device = flex_device(dvalue, 1); 357 if (catg_arg != NULL && device == NULL) { 387 if (device || pkgcnt) 393 if (checkmap(0, (device != NULL), mapfile, envfile, NULL, 396 } else if (device) { 403 if ((spooldir = devattr(device, "pathname")) == NULL) 404 spooldir = device; 454 gettext(MSG_CHK_DIR), pkg[n], device); local 457 gettext(MSG_CHK_STRM), pkg[n], device); local [all...] |
/illumos-gate/usr/src/uts/common/io/audio/drv/audiop16x/ |
H A D | audiop16x.c | 89 4, /* granularity of device */ 406 * NB: The device operates in pairs of dwords at a time, for 544 uint16_t vendor, device; local 566 device = pci_config_get16(pcih, PCI_CONF_DEVID); 568 device != SB_P16X_ID) { 570 "(vendor=%x, dev=%x)", vendor, device);
|