Home
last modified time | relevance | path

Searched refs:device_file (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/cmd/hal/probing/printer/
H A Dprobe-printer.c37 prnio_printer_info(char *device_file, char **manufacturer, char **model, in prnio_printer_info() argument
49 if ((fd = open (device_file, O_RDONLY | O_NONBLOCK)) < 0) { in prnio_printer_info()
107 char *device_file; in main() local
119 if ((device_file = getenv("HAL_PROP_PRINTER_DEVICE")) == NULL) in main()
120 device_file = prnio_device_name(); in main()
122 if (device_file == NULL) in main()
137 ret = prnio_printer_info(device_file, &manufacturer, &model, in main()
141 device_file, strerror(errno))); in main()
147 serial_number, command_set, device_file); in main()
150 device_file, udi, strerror(errno))); in main()
/illumos-gate/usr/src/cmd/hal/addons/storage/
H A Daddon-storage.c144 char *device_file; in force_unmount() local
166 if (device_file != NULL) { in force_unmount()
167 libhal_free_string (device_file); in force_unmount()
240 is_mounted (const char *device_file) in is_mounted() argument
252 mpref.mnt_special = (char *)device_file; in is_mounted()
317 char *device_file, *raw_device_file; in main() local
326 if ((device_file = getenv ("HAL_PROP_BLOCK_DEVICE")) == NULL) in main()
367 if (is_mounted (device_file)) { in main()
383 HAL_DEBUG (("new state %d %s", state, device_file)); in main()
388 HAL_DEBUG (("Media removal detected on %s", device_file)); in main()
[all …]
/illumos-gate/usr/src/cmd/hal/probing/xkb/
H A Dprobe-xkb.c88 get_kbd_layout_type(char *device_file, int *kbd_type, int *kbd_layout) in get_kbd_layout_type() argument
93 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { in get_kbd_layout_type()
94 HAL_DEBUG(("Cannot open %s: %s", device_file, strerror(errno))); in get_kbd_layout_type()
102 if (strstr(device_file, "hid") != NULL) { in get_kbd_layout_type()
111 device_file, strerror(errno))); in get_kbd_layout_type()
116 device_file, strerror(errno))); in get_kbd_layout_type()
280 char *device_file; in main() local
291 if ((device_file = getenv("HAL_PROP_INPUT_DEVICE")) == NULL) { in main()
308 HAL_DEBUG(("Doing probe-xkb for %s (udi=%s)", device_file, udi)); in main()
310 if (get_kbd_layout_type(device_file, &kbd_type, &kbd_layout)) { in main()
[all …]
/illumos-gate/usr/src/cmd/hal/tools/sunos/
H A Dhal-system-lcd-get-brightness-sunos.c34 char device_file[HAL_PATH_MAX] = "/devices"; in main() local
44 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
46 device_file, udi); in main()
47 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { in main()
48 fprintf(stderr, "Cannot open %s: %s", device_file, in main()
H A Dhal-system-lcd-set-brightness-sunos.c35 char device_file[HAL_PATH_MAX] = "/devices"; in main() local
44 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
46 device_file, udi); in main()
48 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { in main()
49 fprintf(stderr, "Cannot open %s: %s", device_file, in main()
/illumos-gate/usr/src/cmd/hal/probing/acpi/
H A Dprobe-acpi.c37 char device_file[HAL_PATH_MAX] = "/devices"; in main() local
46 strlcat(device_file, devfs_path, HAL_PATH_MAX); in main()
55 device_file, udi)); in main()
57 if ((fd = open(device_file, O_RDONLY | O_NONBLOCK)) < 0) { in main()
58 HAL_DEBUG(("Cannot open %s: %s", device_file, strerror(errno))); in main()
/illumos-gate/usr/src/cmd/hal/probing/storage/
H A Dprobe-storage.c46 is_mounted (const char *device_file) in is_mounted() argument
58 mpref.mnt_special = (char *)device_file; in is_mounted()
331 char *device_file; in main() local
357 if ((device_file = getenv ("HAL_PROP_BLOCK_DEVICE")) == NULL) in main()
386 device_file, drive_type, udi, only_check_for_media)); in main()
430 HAL_DEBUG (("Checking for partitions on %s", device_file)); in main()
432 if ((fd = open (device_file, O_RDONLY | O_NONBLOCK)) < 0) { in main()
433 HAL_DEBUG (("Cannot open %s: %s", device_file, strerror (errno))); in main()
/illumos-gate/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c423 char *device_file, *raw_device_file; in main() local
462 if ((device_file = getenv ("HAL_PROP_BLOCK_DEVICE")) == NULL) { in main()
471 if (!(is_dos = dos_to_dev(device_file, &devpath, &dos_num))) { in main()
472 devpath = device_file; in main()
496 HAL_DEBUG (("Doing probe-volume for %s\n", device_file)); in main()
/illumos-gate/usr/src/lib/hal/libhal-storage/common/
H A Dlibhal-storage.c675 char *device_file; member
720 char *device_file; member
795 libhal_free_string (drive->device_file); in libhal_drive_free()
824 libhal_free_string (vol->device_file); in libhal_volume_free()
933 LIBHAL_PROP_EXTRACT_STRING ("block.device", drive->device_file); in libhal_drive_from_udi()
1138 LIBHAL_PROP_EXTRACT_STRING ("block.device", vol->device_file); in libhal_volume_from_udi()
1295 libhal_drive_from_device_file (LibHalContext *hal_ctx, const char *device_file) in libhal_drive_from_device_file() argument
1311 device_file, &num_hal_udis, &error)) == NULL) { in libhal_drive_from_device_file()
1374 device_file, &num_hal_udis, &error)) == NULL) in libhal_volume_from_device_file()
1489 return drive->device_file; in libhal_drive_get_device_file()
[all …]
H A Dlibhal-storage.h195 const char *device_file);
281 const char *device_file);