Searched defs:device (Results 1 - 25 of 236) sorted by path

12345678910

/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dbiospci.c182 {0x0, "device", subclass_old},
283 /* Read the device identifier from the nominated device */
288 /* We have the device ID, create a PnP object and save everything */
400 biospci_locator(int8_t bus, uint8_t device, uint8_t function) argument
403 return ((bus << 8) | ((device & 0x1f) << 3) | (function & 0x7));
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/
H A Dopenfirm.c350 /* Convert a device specifier to a fully qualified pathname. */
352 OF_canon(const char *device, char *buf, int len) argument
358 cell_t device; member in struct:__anon345
368 args.device = (cell_t)device;
376 /* Return a package handle for the specified device. */
378 OF_finddevice(const char *device) argument
384 cell_t device; member in struct:__anon346
392 args.device = (cell_t)device;
496 OF_open(char *device) argument
502 cell_t device; member in struct:__anon350
[all...]
/illumos-gate/usr/src/boot/sys/boot/sparc64/boot1/
H A Dboot1.c63 static int domount(const char *device);
365 printf("usage: boot device [/path/to/loader]\n");
500 domount(const char *device) argument
503 if ((bootdev = ofw_open(device)) == -1) {
504 printf("domount: can't open device\n");
/illumos-gate/usr/src/cmd/allocate/
H A Dallocate.c69 "[-F] device|-g dev-type");
71 "[-F] device|-c dev-class|-g dev-type");
74 "[-a [-w]] -l|-n|-u [device]");
101 "[-s] [-U uname] [-F] device|-g dev-type");
102 use[1] = gettext("deallocate [-s] [-F] device|-c dev-class");
105 "[-s] [-U uid] -l|-n|-u [device]");
137 msg = gettext("Specified device is allocated to another user.");
143 msg = gettext("Unable to clean up device.");
147 "Can't exec device-clean program for specified device
260 char *uname = NULL, *device = NULL, *zonename = NULL; local
[all...]
H A Dallocate3.c126 * 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...]
H A Ddminfo.c89 "[-d device ...]");
117 int device = 0; local
149 if ((name) || (device) || (update) || (tp)) {
153 device++;
165 if ((name) || (device) || (update) || (tp)) {
172 if ((name) || (device) || (update) || (tp)) {
179 if ((name) || (device) || (update) || (tp)) {
197 * -d(device) -n(name) and -u(update) switches require at least one
202 if ((device) || (name) || (update) || (tp)) {
234 * Find out how long device lis
[all...]
H A Dmkdevalloc.c89 char *device; member in struct:tape
102 char *device; member in struct:audio
112 char *device; member in struct:cd
127 char *device; member in struct:rmdisk
137 char *device; member in struct:fp
214 * write device entries to device_allocate and device_maps.
237 char *nm; /* name/device of special device */
299 tape[i].device = nm;
301 /* get device numbe
[all...]
/illumos-gate/usr/src/cmd/audio/audioctl/
H A Daudioctl.c140 typedef struct device { struct
150 struct device *nextp;
265 perror(_("Error opening device"));
694 "audioctl show-device [ -v ] [ -d <device> ]\n" \
695 " display information about an audio device\n" \
697 "audioctl show-control [ -v ] [ -d <device> ] [ <control> ... ]\n" \
700 "audioctl set-control [ -v ] [ -d <device> ] <control> <value>\n" \
703 "audioctl save-controls [ -d <device> ] [ -f ] <file>\n" \
704 " save all control settings for the device t
[all...]
/illumos-gate/usr/src/cmd/avs/rdc/
H A Dsndrsubr.c63 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/avs/sdbc/
H A Dscmadm.c291 (void) snprintf(key, sizeof (key), "cache_hint.set%d.device",
745 * takes either either a string containing the cd or the device name, and
746 * returns the device name.
752 char *device; local
754 /* if the arg has a leading '/', assume it's a valid device name */
759 /* treat the "all" keyword as a valid device name */
766 * subsequently convert that cd to its corresponding device name.
773 device = cd_to_device((int)cd);
776 if (device && (strcmp(device, ""))) {
786 remove_hint(char *device) argument
845 char device[NSC_MAXPATH]; local
[all...]
/illumos-gate/usr/src/cmd/backup/dump/
H A Ddumpmain.c234 msg(gettext("Bad output device name\n"));
239 msg(gettext("Missing output device name\n"));
609 * NB: we attempt to avoid dumping the block device
692 msg(gettext("Cannot open dump device `%s': %s\n"),
711 "Warning - super-block on device `%s' is corrupt - run fsck\n"),
737 * device, but if we can use it, things go somewhat faster. If
1275 * writing to the tape device. it always returns the amount of time
1389 * Safely open a file or device.
1392 safe_open_common(const char *filename, int mode, int perms, int device) argument
1480 * If inode, device, o
[all...]
/illumos-gate/usr/src/cmd/backup/lib/
H A Drmtlib.c157 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/bnu/
H A Daccount.c62 char device[MODSTR]; /* network medium */ member in struct:acData
121 acptr->device, FS,
144 * device - the type of device being used for communicaitons.
148 acConnected (remote, device)
151 char * device;
158 copyText(acptr->device, sizeof(acptr->device), device);
269 copyText(acptr->device, sizeo
[all...]
H A Ddial.h43 #define DEVDIR "/dev/" /* device path */
45 #define DVC_LEN 80 /* max NO of chars in TTY-device path name */
59 #define DV_NT_A (-8) /* requested device not available */
60 #define DV_NT_K (-9) /* requested device not known */
61 #define NO_BD_A (-10) /* no device available at requested baud */
62 #define NO_BD_K (-11) /* no device known at requested baud */
70 char *line; /* device name for out-going line */
73 char *device; /* unused */ member in struct:__anon46
H A Duustat.c1303 char remote[10],device[10], netid[20], jobid[20]; local
1357 rectype, time, pid, wmachine, role, remote, device, netid,
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c3899 bam_error(_("%s is on a ramdisk device\n"), bam_root);
5408 get_partition(char *device) argument
5421 slice = device + strlen(device) - 2;
5425 wholedisk = s_calloc(1, strlen(device) + 3);
5426 (void) snprintf(wholedisk, strlen(device) + 3, "%sp0", device);
6142 bam_error(_("NULL device: cannot determine pool name\n"));
6158 bam_error(_("invalid device %s: cannot determine pool name\n"),
6174 bam_error(_("fstyp -a on device
[all...]
/illumos-gate/usr/src/cmd/boot/installboot/i386/
H A Dinstallboot.c122 static int read_bootblock_from_disk(ib_device_t *device, ib_bootblock_t *,
238 read_bootblock_from_disk(ib_device_t *device, ib_bootblock_t *bblock, argument
247 assert(device != NULL);
250 if (device->target.fstype == IG_FS_ZFS) {
251 dev_fd = device->target.fd;
253 *path = device->target.path;
255 dev_fd = device->stage.fd;
256 offset = device->stage.offset * SECTOR_SIZE;
257 *path = device->stage.path;
329 ib_device_t *device local
418 ib_device_t *device; local
463 ib_device_t *device; local
487 ib_device_t *device = &data->device; local
539 ib_device_t *device = &data->device; local
610 get_start_sector(ib_device_t *device) argument
856 get_boot_partition(ib_device_t *device, struct mboot *mbr) argument
911 get_boot_slice(ib_device_t *device, struct dk_gpt *vtoc) argument
946 init_device(ib_device_t *device, char *path) argument
1109 cleanup_device(ib_device_t *device) argument
1301 ib_device_t *device = &data.device; local
[all...]
H A Dinstallboot.h39 /* 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/cmd/boot/installboot/sparc/
H A Dinstallboot.c90 ib_device_t *device = &data->device; local
117 if (!is_zfs(device->type)) {
152 if (!is_zfs(device->type)) {
268 ib_device_t *device = &data->device; local
269 int dev_fd = device->fd;
272 assert(device->fd != -1);
275 if (!is_zfs(device->type))
281 BOOT_DEBUG("Unable to read bootblock from %s\n", device
338 ib_device_t *device = &data->device; local
386 ib_device_t *device = &data->device; local
426 ib_device_t *device = &data->device; local
452 open_device(ib_device_t *device) argument
480 init_device(ib_device_t *device, char *path) argument
499 cleanup_device(ib_device_t *device) argument
675 ib_device_t *device = &data.device; local
[all...]
H A Dinstallboot.h60 ib_device_t device; member in struct:_ib_data
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dinstallgrub.c103 static int get_disk_fd(ig_device_t *device);
267 * Install a new stage1/stage2 pair on the specified device. handle_install()
269 * the target device).
299 BOOT_DEBUG("stage1 path: %s, stage2 path: %s, device: %s\n",
302 if (init_device(&install_data.device, device_path) != BC_SUCCESS) {
303 (void) fprintf(stderr, gettext("Unable to gather device "
322 if (is_bootpar(install_data.device.type) && do_version)
349 cleanup_device(&install_data.device);
358 * Retrieves from a device the extended information (einfo) associated to the
360 * Expects one parameter, the device pat
371 ig_device_t *device = &data.device; local
634 init_device(ig_device_t *device, char *path) argument
700 cleanup_device(ig_device_t *device) argument
726 get_start_sector(ig_device_t *device) argument
889 get_disk_fd(ig_device_t *device) argument
982 ig_device_t *device = &install->device; local
1040 ig_device_t *device = &install->device; local
1106 ig_device_t *device = &dest->device; local
1177 ig_device_t *device = &install->device; local
1297 ig_device_t *device = &data->device; local
1350 ig_device_t *device = &install->device; local
1479 get_raw_partition_path(ig_device_t *device) argument
1530 get_raw_partition_fd(ig_device_t *device) argument
[all...]
H A Dinstallgrub.h66 ig_device_t device; member in struct:_ig_data
/illumos-gate/usr/src/cmd/boot/mbr/
H A Dmbr.c43 fprintf(stderr, "Usage: %s [ -d | -n | -o | -r ] <device> [<mboot>]\n",
57 char *device; local
102 device = strdup(argv[optind]);
103 if (!device) {
106 fd = open(device, O_RDWR);
108 fprintf(stderr, "cannot read MBR on %s\n", device);
/illumos-gate/usr/src/cmd/busstat/
H A Dbusstat.c229 * Display all the events that can be set on a device.
238 char *device = NULL; local
248 * be the device instance number, if the user specified one. If
252 * the device number to be ignored during the search.
256 device = safe_malloc(sizeof (char) * i+1);
257 device[i] = '\0';
258 (void) strncpy(device, value, i);
267 if (device == NULL)
268 device = value;
275 if ((cnt_ksp = kstat_lookup(kc, device, inst_nu
429 char *device = NULL; local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/
H A Din.rarpd.c90 * Physical network device
93 char device[DLPI_LINKNAME_MAX]; member in struct:rarpdev
105 struct rarpdev *rdev; /* which device reply for */
227 * Load specified device as only element of the list.
252 (void) strlcpy(rarpdev_head->device, ifsp.ifsp_devnm,
253 sizeof (rarpdev_head->device));
278 * Start RARP processing for each device.
353 * Look for an existing device for logical interfaces.
360 (void) strlcpy(rdev->device, ifsp.ifsp_devnm,
361 sizeof (rdev->device));
[all...]

Completed in 158 milliseconds

12345678910