/illumos-gate/usr/src/cmd/hal/hald-runner/ |
H A D | runner.h | 34 gchar *udi; member in struct:__anon634 49 /* Kill all running request for a udi */ 50 void run_kill_udi(gchar *udi);
|
H A D | main.c | 48 r->udi = g_strdup(tmpstr); 151 fprintf(stderr, "error parsing udi"); 187 char *udi; local 191 DBUS_TYPE_STRING, &udi, 200 run_kill_udi(udi);
|
/illumos-gate/usr/src/cmd/hal/probing/acpi/ |
H A D | probe-acpi.c | 36 char *udi; local 42 if ((udi = getenv("UDI")) == NULL) 54 HAL_DEBUG(("Doing probe-acpi for %s (udi=%s)", 55 device_file, udi)); 61 if (strstr(udi, "_ac")) { 62 ac_adapter_update(ctx, udi, fd); 63 } else if (strstr(udi, "_battery")) { 64 battery_update(ctx, udi, fd); 65 } else if (strstr(udi, "_lid")) { 66 lid_update(ctx, udi, f [all...] |
/illumos-gate/usr/src/cmd/hal/tools/sunos/ |
H A D | hal-system-lcd-get-brightness-sunos.c | 35 char *udi; local 39 if ((udi = getenv("UDI")) == NULL) { 47 fprintf(stderr, "Getting brightness on %s (udi=%s)", 48 device_file, udi);
|
H A D | hal-system-lcd-set-brightness-sunos.c | 36 char *udi; local 40 if ((udi = getenv("UDI")) == NULL) { 47 fprintf(stderr, "Setting brightness on %s (udi=%s)", 48 device_file, udi);
|
/illumos-gate/usr/src/cmd/hal/probing/network-printer/ |
H A D | probe-network-printer.c | 39 char *udi; local 58 if ((udi = getenv("UDI")) == NULL) 76 if ((cs = libhal_device_new_changeset(udi)) == NULL) { 92 ret = add_printer_info(cs, udi, manufacturer, model, description, 96 printer_address, udi, strerror(errno)));
|
/illumos-gate/usr/src/cmd/hal/addons/network-devices/ |
H A D | cache.c | 47 char **udi = NULL; local 51 udi = libhal_manager_find_device_string_match(args->ctx, 55 if (udi != NULL) { 59 libhal_remove_device(args->ctx, udi[i], &error); 60 HAL_DEBUG(("remove: %s (%s)", name, udi[i])); 62 libhal_free_string_array(udi);
|
H A D | addon-network-discovery.c | 166 char *udi = getenv("UDI"); local 179 rc = nds_EnablePrinterScanningViaSNMP(ctx, udi, interval, 184 char *udi = getenv("UDI"); local 196 rc = nds_ScanForPrintersViaSNMP(ctx, udi, community, network); 227 nds_claim_interface(LibHalContext *ctx, char *udi, DBusError *error) argument 247 ctx, udi, error, DBUS_INTERFACE)); 254 if (libhal_device_claim_interface(ctx, udi, 314 char *udi; local 316 if ((udi = getenv("UDI")) == NULL) { 330 if (!libhal_device_addon_is_ready(ctx, udi, [all...] |
H A D | common.c | 35 network_device_name_to_udi(char *udi, size_t size, ...) argument 41 udi[0] = '\0'; 45 strlcat(udi, "/", size); 46 strlcat(udi, element, size); 50 for (i = 0; udi[i] != NULL; i++) 51 if (udi[i] == '.') 52 udi[i] = '_'; 172 char udi[128]; local 185 network_device_name_to_udi(udi, sizeof (udi), bas [all...] |
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo_cpu.c | 58 char udi[HAL_PATH_MAX]; local 138 * the udi. For some solaris devices like cpu di_instance() is not 139 * present and it returns -1. For the udi to be unique can use the 160 hal_util_compute_udi (hald_get_gdl (), udi, sizeof (udi), local 162 hal_device_set_udi (d, udi); 163 hal_device_property_set_string (d, "info.udi", udi);
|
H A D | devinfo_misc.c | 86 hal_device_property_set_string (d, "info.udi", "/org/freedesktop/Hal/devices/computer"); 117 hal_device_property_set_string (local_d, "info.udi", "/org/freedesktop/Hal/devices/local"); 131 char udi[HAL_PATH_MAX]; local 152 hal_util_compute_udi(hald_get_gdl(), udi, sizeof (udi), local 155 hal_device_set_udi(d, udi); 156 hal_device_property_set_string(d, "info.udi", udi); 168 char udi[HAL_PATH_MAX]; local 187 hal_util_compute_udi(hald_get_gdl(), udi, sizeo local [all...] |
H A D | devinfo_acpi.c | 189 devinfo_battery_rescan(char *parent_devfs_path, gchar *udi) argument 193 d = hal_device_store_find(hald_get_gdl(), udi); 195 HAL_INFO(("device not found %s", udi)); 205 devinfo_lid_event(char *subclass, gchar *udi) argument 209 d = hal_device_store_find(hald_get_gdl(), udi); 211 HAL_INFO(("device not found %s", udi));
|
/illumos-gate/usr/src/cmd/hal/tools/ |
H A D | hal_get_property.c | 59 "usage : hal-get-property --udi <udi> --key <key> \n" 63 " --udi Unique Device Id\n" 85 char *udi = NULL; local 105 {"udi", 1, NULL, 0}, 134 } else if (strcmp (opt, "udi") == 0) { 135 udi = strdup (optarg); 151 if (udi == NULL || key == NULL) { 177 udi_exists = libhal_device_exists (hal_ctx, udi, &error); 179 fprintf (stderr, "error: UDI %s does not exist\n", udi); [all...] |
H A D | hal-is-caller-privileged.c | 55 "usage : hal-is-caller-privileged --udi <udi> --action <action>\n" 60 " --udi Unique Device Id\n" 98 char *udi = NULL; local 123 {"udi", 1, NULL, 0}, 145 } else if (strcmp (opt, "udi") == 0) { 146 udi = strdup (optarg); 166 if (udi == NULL || caller == NULL || privilege == NULL) { 191 udi,
|
H A D | hal-storage-closetray.c | 79 char *udi; local 99 udi = getenv ("HAL_PROP_INFO_UDI"); 100 if (udi == NULL) 158 if ((drive = libhal_drive_from_udi (hal_ctx, udi)) == NULL) {
|
H A D | hal-storage-unmount.c | 78 char *udi; local 104 udi = getenv ("HAL_PROP_INFO_UDI"); 105 if (udi == NULL) 170 volume = libhal_volume_from_udi (hal_ctx, udi); 174 drive = libhal_drive_from_udi (hal_ctx, udi); 182 udi, NULL, drive, device, invoked_by_uid, 203 udi, volume, drive, device, invoked_by_uid,
|
H A D | hal-storage-eject.c | 77 char *udi; local 101 udi = getenv ("HAL_PROP_INFO_UDI"); 102 if (udi == NULL) 160 if ((volume = libhal_volume_from_udi (hal_ctx, udi)) != NULL) { 163 drive_udi = g_strdup (udi); 167 unknown_eject_error ("Cannot get drive udi"); 170 unknown_eject_error ("Cannot get drive from udi");
|
H A D | hal-storage-zpool.c | 175 char *udi; local 193 udi = getenv ("HAL_PROP_INFO_UDI"); 194 if (udi == NULL) 224 if ((volume = libhal_volume_from_udi (hal_ctx, udi)) == NULL) { 228 unknown_zpool_error ("Cannot get drive udi"); 231 unknown_zpool_error ("Cannot get drive from udi");
|
H A D | hal_set_property.c | 72 "usage : hal-set-property --udi <udi> --key <key>\n" 78 "\n" " --udi Unique Device Id\n" 110 char *udi = NULL; local 133 {"udi", 1, NULL, 0}, 196 } else if (strcmp (opt, "udi") == 0) { 197 udi = strdup (optarg); 244 udi_exists = libhal_device_exists (hal_ctx, udi, &error); 246 fprintf (stderr, "error: UDI %s does not exist\n", udi); 256 rc = libhal_device_remove_property (hal_ctx, udi, ke [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | device.h | 41 char *udi; member in struct:_HalDevice 103 const char *udi);
|
H A D | device_store.c | 177 if (strncmp(device->udi, buf, sizeof (buf) - 1) != 0) { 220 hal_device_store_find (HalDeviceStore *store, const char *udi) argument 227 if (strcmp (hal_device_get_udi (d), udi) == 0)
|
/illumos-gate/usr/src/cmd/hal/probing/printer/ |
H A D | probe-printer.c | 108 char *udi; local 119 if ((udi = getenv("UDI")) == NULL) 133 if ((cs = libhal_device_new_changeset(udi)) == NULL) { 148 ret = add_printer_info(cs, udi, manufacturer, model, description, 152 device_file, udi, strerror(errno)));
|
/illumos-gate/usr/src/cmd/hal/utils/ |
H A D | printer.c | 114 add_printer_info(LibHalChangeSet *cs, char *udi, char *manufacturer, argument 119 HAL_DEBUG(("udi: %s, snmp data: vendor=%s, product=%s, " 121 NP(udi), NP(manufacturer), NP(model), NP(description),
|
/illumos-gate/usr/src/cmd/cdrw/ |
H A D | device.c | 313 char **udi, *p = NULL; local 325 if ((udi = libhal_manager_find_device_string_match(ctx, 331 if ((p = libhal_device_get_property_string(ctx, udi[i], 339 if (udi != NULL) 340 libhal_free_string_array(udi); 358 char **udi, *path = NULL; local 378 if ((udi = libhal_manager_find_device_string_match(ctx, 389 udi[i], HAL_RDSK_PROP, NULL)) != NULL) 396 if (udi != NULL) 397 libhal_free_string_array(udi); [all...] |
/illumos-gate/usr/src/cmd/hal/addons/storage/ |
H A D | addon-storage.c | 40 static char *udi; variable 127 libhal_device_emit_condition (ctx, udi, "EjectPressed", "", &error); 135 force_unmount (LibHalContext *ctx, const char *udi) argument 149 msg = dbus_message_new_method_call ("org.freedesktop.Hal", udi, 153 HAL_DEBUG (("Could not create dbus message for %s", udi)); 164 device_file = libhal_device_get_property_string (ctx, udi, "block.device", &error); 173 HAL_DEBUG (("Could not append args to dbus message for %s", udi)); 178 HAL_DEBUG (("Unmount failed for %s: %s : %s\n", udi, error.name, error.message)); 183 HAL_DEBUG (("Unmount failed for %s\n%s : %s\n", udi, error.name, error.message)); 187 HAL_DEBUG (("Succesfully unmounted udi ' 200 unmount_childs(LibHalContext *ctx, const char *udi) argument [all...] |