Home
last modified time | relevance | path

Searched refs:udi (Results 1 – 25 of 62) sorted by relevance

123

/illumos-gate/usr/src/cmd/hal/utils/
H A Dacpi.c180 libhal_device_remove_property(ctx, udi, in battery_remove()
186 libhal_device_remove_property(ctx, udi, in battery_remove()
189 libhal_device_remove_property(ctx, udi, in battery_remove()
201 libhal_device_remove_property(ctx, udi, in battery_remove()
204 libhal_device_remove_property(ctx, udi, in battery_remove()
213 libhal_device_remove_property(ctx, udi, in battery_remove()
216 libhal_device_remove_property(ctx, udi, in battery_remove()
231 libhal_device_remove_property(ctx, udi, in battery_remove()
234 libhal_device_remove_property(ctx, udi, in battery_remove()
592 battery_remove(ctx, udi); in battery_update()
[all …]
H A Dacpi.h21 gboolean battery_update(LibHalContext *ctx, const char *udi, int fd);
22 gboolean ac_adapter_update(LibHalContext *ctx, const char *udi, int fd);
23 gboolean lid_update(LibHalContext *ctx, const char *udi, int fd);
24 gboolean laptop_panel_update(LibHalContext *ctx, const char *udi, int fd);
26 int open_device(LibHalContext *ctx, char *udi);
/illumos-gate/usr/src/cmd/rmvolmgr/
H A Drmvolmgr.c57 char *udi; member
305 if ((v->udi = strdup(udi)) == NULL) { in rmm_managed_alloc()
310 free(v->udi); in rmm_managed_alloc()
322 free(v->udi); in rmm_managed_free()
330 const char *udi = b; in rmm_managed_compare_udi() local
332 return (strcmp(va->udi, udi)); in rmm_managed_compare_udi()
375 volume_added(const char *udi) in volume_added() argument
406 volume_removed(const char *udi) in volume_removed() argument
432 volume_added(udi); in rmm_device_added()
441 volume_removed(udi); in rmm_device_removed()
[all …]
H A Drmm_common.c533 dprintf("mounted %s\n", udi); in rmm_hal_mount()
578 dprintf("unmounted %s\n", udi); in rmm_hal_unmount()
624 dprintf("ejected %s\n", udi); in rmm_hal_eject()
651 udi); in rmm_hal_closetray()
659 udi); in rmm_hal_closetray()
696 udi); in rmm_hal_rescan()
708 dprintf("rescan ok %s\n", udi); in rmm_hal_rescan()
887 const char *udi, *d_udi; in rmm_action() local
944 udi); in rmm_action()
1070 const char *udi = udi_arg; in rmm_volume_aa_from_prop() local
[all …]
/illumos-gate/usr/src/cmd/hal/tools/
H A Dlshal.c78 short_name (const char *udi) in short_name() argument
193 print_props (udi); in dump_device()
214 if (!udi) { in dump_children()
317 const char *udi) in device_added() argument
324 print_props (udi); in device_added()
336 const char *udi) in device_removed() argument
355 const char *udi, in device_new_capability() argument
377 const char *udi, in device_lost_capability() argument
476 const char *udi, in property_modified() argument
486 udi, key); in property_modified()
[all …]
H A Dhal-device.c51 char *udi; member
89 char *udi; member
198 udi = arg; in dump_devices()
212 if (!udi) { in dump_devices()
235 if (!udi) in dump_devices()
307 char *udi; in remove_udi() local
312 udi = arg; in remove_udi()
352 udi = arg; in add_udi()
362 if (udi) in add_udi()
363 new_dev.udi = strdup(udi); in add_udi()
[all …]
H A Dhal_get_property.c85 char *udi = NULL; in main() local
135 udi = strdup (optarg); in main()
151 if (udi == NULL || key == NULL) { in main()
177 udi_exists = libhal_device_exists (hal_ctx, udi, &error); in main()
179 fprintf (stderr, "error: UDI %s does not exist\n", udi); in main()
189 type = libhal_device_get_property_type (hal_ctx, udi, key, &error); in main()
202 str = libhal_device_get_property_string (hal_ctx, udi, key, &error); in main()
213 libhal_device_get_property_int (hal_ctx, udi, key, &error)); in main()
220 (long long unsigned int) libhal_device_get_property_uint64 (hal_ctx, udi, key, &error)); in main()
226 libhal_device_get_property_double (hal_ctx, udi, key, &error)); in main()
[all …]
H A Dhal_set_property.c111 char *udi = NULL; in main() local
202 udi = strdup (optarg); in main()
257 udi_exists = libhal_device_exists (hal_ctx, udi, &error); in main()
259 fprintf (stderr, "error: UDI %s does not exist\n", udi); in main()
269 rc = libhal_device_remove_property (hal_ctx, udi, key, &error); in main()
282 rc = libhal_device_set_property_string (hal_ctx, udi, key, str_value, &error); in main()
285 rc = libhal_device_set_property_int (hal_ctx, udi, key, int_value, &error); in main()
288 rc = libhal_device_set_property_uint64 (hal_ctx, udi, key, uint64_value, &error); in main()
291 rc = libhal_device_set_property_double (hal_ctx, udi, key, double_value, &error); in main()
294 rc = libhal_device_set_property_bool (hal_ctx, udi, key, bool_value, &error); in main()
[all …]
H A Dhal-storage-unmount.c78 char *udi; in main() local
104 udi = getenv ("HAL_PROP_INFO_UDI"); in main()
105 if (udi == NULL) in main()
170 volume = libhal_volume_from_udi (hal_ctx, udi); in main()
174 drive = libhal_drive_from_udi (hal_ctx, udi); in main()
182 udi, NULL, drive, device, invoked_by_uid, in main()
203 udi, volume, drive, device, invoked_by_uid, in main()
/illumos-gate/usr/src/lib/hal/libhal/common/
H A Dlibhal.h123 const char *udi);
145 const char *udi,
158 const char *udi,
257 const char *udi,
269 const char *udi,
275 const char *udi,
512 const char *udi,
520 const char *udi,
585 const char *udi,
592 const char *udi,
[all …]
H A Dlibhal.c970 char *udi; in filter_func() local
982 char *udi; in filter_func() local
1398 udi); in libhal_device_get_property_int()
1468 udi); in libhal_device_get_property_uint64()
2138 udi, in libhal_device_lock()
2203 udi, in libhal_device_unlock()
3565 udi, in libhal_device_reprobe()
3632 udi, in libhal_device_emit_condition()
3709 udi, in libhal_device_addon_is_ready()
3777 udi, in libhal_device_claim_interface()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/
H A Dhald_dbus.c112 udi in raise_no_such_device()
379 &udi); in foreach_device_match_get_udi()
409 &udi); in foreach_device_match_get_udi_tdl()
2280 if (strcmp (pu_iter2->udi, pu_iter->udi) == 0) in device_property_atomic_update_end()
2303 if (strcmp (pu_iter2->udi, pu_iter->udi) == 0) { in device_property_atomic_update_end()
2375 pu->udi = g_strdup (udi); in device_send_signal_property_modified()
2732 udi)); in device_claim_interface()
2740 hih->udi = g_strdup (udi); in device_claim_interface()
2900 char *udi; in manager_remove() local
3486 mi->udi = g_strdup (d->udi); in hald_exec_method()
[all …]
/illumos-gate/usr/src/cmd/hal/probing/acpi/
H A Dprobe-acpi.c36 char *udi; in main() local
42 if ((udi = getenv("UDI")) == NULL) in main()
55 device_file, udi)); in main()
61 if (strstr(udi, "_ac")) { in main()
62 ac_adapter_update(ctx, udi, fd); in main()
63 } else if (strstr(udi, "_battery")) { in main()
64 battery_update(ctx, udi, fd); in main()
65 } else if (strstr(udi, "_lid")) { in main()
66 lid_update(ctx, udi, fd); in main()
67 } else if (strstr(udi, "_hotkey")) { in main()
[all …]
/illumos-gate/usr/src/cmd/hal/addons/storage/
H A Daddon-storage.c41 static char *udi; variable
136 force_unmount (LibHalContext *ctx, const char *udi) in force_unmount() argument
154 HAL_DEBUG (("Could not create dbus message for %s", udi)); in force_unmount()
188 HAL_DEBUG (("Succesfully unmounted udi '%s'", udi)); in force_unmount()
201 unmount_childs (LibHalContext *ctx, const char *udi) in unmount_childs() argument
324 if ((udi = getenv ("UDI")) == NULL) in main()
350 if (!libhal_device_addon_is_ready (ctx, udi, &error)) { in main()
395 unmount_childs (ctx, udi); in main()
398 libhal_device_rescan (ctx, udi, &error); in main()
410 libhal_device_rescan (ctx, udi, &error); in main()
[all …]
/illumos-gate/usr/src/cmd/hal/probing/volume/
H A Dprobe-volume.c87 if ((cs = libhal_device_new_changeset (udi)) == NULL) { in set_fstyp_properties()
204 libhal_device_set_property_bool (ctx, udi, in hsfs_contents()
207 libhal_device_set_property_bool (ctx, udi, in hsfs_contents()
210 libhal_device_set_property_bool (ctx, udi, in hsfs_contents()
346 if ((cs = libhal_device_new_changeset (udi)) == NULL) { in probe_disc()
422 char *udi; in main() local
459 if ((udi = getenv ("UDI")) == NULL) { in main()
533 if (!probe_disc (rfd, ctx, udi, &has_data, &has_audio)) { in main()
608 if (strcmp (udi, volumes[i]) == 0) { in main()
647 set_fstyp_properties (ctx, udi, fstype, fsattr); in main()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_misc.c131 char udi[HAL_PATH_MAX]; in devinfo_keyboard_add() local
152 hal_util_compute_udi(hald_get_gdl(), udi, sizeof (udi), in devinfo_keyboard_add()
155 hal_device_set_udi(d, udi); in devinfo_keyboard_add()
156 hal_device_property_set_string(d, "info.udi", udi); in devinfo_keyboard_add()
168 char udi[HAL_PATH_MAX]; in devinfo_mouse_add() local
187 hal_util_compute_udi(hald_get_gdl(), udi, sizeof (udi), in devinfo_mouse_add()
190 hal_device_set_udi(d, udi); in devinfo_mouse_add()
191 hal_device_property_set_string(d, "info.udi", udi); in devinfo_mouse_add()
H A Ddevinfo_usb.c374 char udi[HAL_PATH_MAX]; in devinfo_usb_if_add() local
493 char udi[HAL_PATH_MAX]; in devinfo_usb_video4linux_add() local
523 hal_util_compute_udi(hald_get_gdl(), udi, sizeof (udi), in devinfo_usb_video4linux_add()
526 hal_device_set_udi(d, udi); in devinfo_usb_video4linux_add()
555 char udi[HAL_PATH_MAX]; in devinfo_usb_input_add() local
592 hal_util_compute_udi(hald_get_gdl(), udi, sizeof (udi), in devinfo_usb_input_add()
595 hal_device_set_udi(d, udi); in devinfo_usb_input_add()
630 char udi[HAL_PATH_MAX]; in devinfo_usb_scsa2usb_add() local
646 hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), in devinfo_usb_scsa2usb_add()
649 hal_device_set_udi (d, udi); in devinfo_usb_scsa2usb_add()
[all …]
H A Ddevinfo_storage.c207 char udi[HAL_PATH_MAX]; in devinfo_ide_storage_add() local
218 hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), in devinfo_ide_storage_add()
252 char udi[HAL_PATH_MAX]; in devinfo_scsi_add() local
264 hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), in devinfo_scsi_add()
287 char udi[HAL_PATH_MAX]; in devinfo_scsi_storage_add() local
294 hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), in devinfo_scsi_storage_add()
377 char udi[HAL_PATH_MAX]; in devinfo_blkdev_add() local
389 hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), in devinfo_blkdev_add()
414 hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), in devinfo_blkdev_storage_add()
619 hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), in devinfo_lofi_add_major()
[all …]
/illumos-gate/usr/src/cmd/hal/addons/network-devices/
H A Dcommon.c36 network_device_name_to_udi(char *udi, size_t size, ...) in network_device_name_to_udi() argument
42 udi[0] = '\0'; in network_device_name_to_udi()
46 strlcat(udi, "/", size); in network_device_name_to_udi()
47 strlcat(udi, element, size); in network_device_name_to_udi()
51 for (i = 0; udi[i] != '\0'; i++) in network_device_name_to_udi()
52 if (udi[i] == '.') in network_device_name_to_udi()
53 udi[i] = '_'; in network_device_name_to_udi()
173 char udi[128]; in add_network_printer() local
186 network_device_name_to_udi(udi, sizeof (udi), base, serial, NULL); in add_network_printer()
188 if (libhal_device_exists(ctx, udi, &error) == TRUE) in add_network_printer()
[all …]
H A Daddon-network-discovery.c166 char *udi = getenv("UDI"); in nds_filter_function() local
179 rc = nds_EnablePrinterScanningViaSNMP(ctx, udi, interval, in nds_filter_function()
184 char *udi = getenv("UDI"); in nds_filter_function() local
196 rc = nds_ScanForPrintersViaSNMP(ctx, udi, community, network); in nds_filter_function()
227 nds_claim_interface(LibHalContext *ctx, char *udi, DBusError *error) in nds_claim_interface() argument
247 ctx, udi, error, DBUS_INTERFACE)); in nds_claim_interface()
254 if (libhal_device_claim_interface(ctx, udi, in nds_claim_interface()
314 char *udi; in main() local
316 if ((udi = getenv("UDI")) == NULL) { in main()
330 if (!libhal_device_addon_is_ready(ctx, udi, &error)) { in main()
[all …]
H A Dcache.c47 char **udi = NULL; in device_remove_if_stale() local
51 udi = libhal_manager_find_device_string_match(args->ctx, in device_remove_if_stale()
55 if (udi != NULL) { in device_remove_if_stale()
59 libhal_remove_device(args->ctx, udi[i], &error); in device_remove_if_stale()
60 HAL_DEBUG(("remove: %s (%s)", name, udi[i])); in device_remove_if_stale()
62 libhal_free_string_array(udi); in device_remove_if_stale()
/illumos-gate/usr/src/cmd/hal/probing/network-printer/
H A Dprobe-network-printer.c39 char *udi; in main() local
58 if ((udi = getenv("UDI")) == NULL) in main()
76 if ((cs = libhal_device_new_changeset(udi)) == NULL) { in main()
92 ret = add_printer_info(cs, udi, manufacturer, model, description, in main()
96 printer_address, udi, strerror(errno))); in main()
/illumos-gate/usr/src/cmd/hal/hald-runner/
H A Drunner.c101 g_free(r->udi); in del_run_request()
141 list = (GList *)g_hash_table_lookup(udi_hash, rd->r->udi); in remove_run_data()
144 g_hash_table_insert(udi_hash, g_strdup(rd->r->udi), list); in remove_run_data()
315 list = (GList *)g_hash_table_lookup(udi_hash, r->udi); in run_request_run()
319 g_hash_table_insert(udi_hash, g_strdup(r->udi), list); in run_request_run()
351 do_kill_udi(gchar *udi) in do_kill_udi() argument
354 list = (GList *)g_hash_table_lookup(udi_hash, udi); in do_kill_udi()
361 run_kill_udi(gchar *udi) in run_kill_udi() argument
363 do_kill_udi(udi); in run_kill_udi()
364 g_hash_table_remove(udi_hash, udi); in run_kill_udi()
/illumos-gate/usr/src/lib/hal/libhal-storage/common/
H A Dlibhal-storage.c671 char *udi; member
716 char *udi; member
794 free (drive->udi); in libhal_drive_free()
823 free (vol->udi); in libhal_volume_free()
913 drive->udi = strdup (udi); in libhal_drive_from_udi()
1106 vol->udi = strdup (udi); in libhal_volume_from_udi()
1317 char *udi; in libhal_drive_from_device_file() local
1321 udi = hal_udis[i]; in libhal_drive_from_device_file()
1378 char *udi; in libhal_volume_from_device_file() local
1379 udi = hal_udis[i]; in libhal_volume_from_device_file()
[all …]
/illumos-gate/usr/src/cmd/hal/probing/printer/
H A Dprobe-printer.c106 char *udi; in main() local
117 if ((udi = getenv("UDI")) == NULL) in main()
131 if ((cs = libhal_device_new_changeset(udi)) == NULL) { in main()
146 ret = add_printer_info(cs, udi, manufacturer, model, description, in main()
150 device_file, udi, strerror(errno))); in main()

123