/osnet-11/usr/src/cmd/hal/tools/ |
H A D | hal_find_by_capability.c | 81 LibHalContext *hal_ctx; local 139 if ((hal_ctx = libhal_ctx_new ()) == NULL) { 144 if (!libhal_ctx_set_dbus_connection (hal_ctx, dbus_bus_get (DBUS_BUS_SYSTEM, &error))) { 149 if (!libhal_ctx_init (hal_ctx, &error)) { 160 udis = libhal_find_device_by_capability (hal_ctx, capability, &num_udis, &error);
|
H A D | hal_find_by_property.c | 86 LibHalContext *hal_ctx; local 147 if ((hal_ctx = libhal_ctx_new ()) == NULL) { 151 if (!libhal_ctx_set_dbus_connection (hal_ctx, dbus_bus_get (DBUS_BUS_SYSTEM, &error))) { 156 if (!libhal_ctx_init (hal_ctx, &error)) { 167 udis = libhal_manager_find_device_string_match (hal_ctx, key, value, &num_udis, &error);
|
H A D | hal_get_property.c | 47 static LibHalContext *hal_ctx; variable 157 if ((hal_ctx = libhal_ctx_new ()) == NULL) { 161 if (!libhal_ctx_set_dbus_connection (hal_ctx, dbus_bus_get (DBUS_BUS_SYSTEM, &error))) { 166 if (!libhal_ctx_init (hal_ctx, &error)) { 177 udi_exists = libhal_device_exists (hal_ctx, udi, &error); 189 type = libhal_device_get_property_type (hal_ctx, udi, key, &error); 202 str = libhal_device_get_property_string (hal_ctx, udi, key, &error); 213 libhal_device_get_property_int (hal_ctx, udi, key, &error)); 220 (long long unsigned int) libhal_device_get_property_uint64 (hal_ctx, udi, key, &error)); 226 libhal_device_get_property_double (hal_ctx, ud [all...] |
H A D | hal-storage-closetray.c | 83 LibHalContext *hal_ctx = NULL; local 108 if ((hal_ctx = libhal_ctx_init_direct (&error)) == NULL) { 158 if ((drive = libhal_drive_from_udi (hal_ctx, udi)) == NULL) { 163 handle_eject (hal_ctx,
|
H A D | hal-storage-unmount.c | 82 LibHalContext *hal_ctx = NULL; local 113 if ((hal_ctx = libhal_ctx_init_direct (&error)) == NULL) { 170 volume = libhal_volume_from_udi (hal_ctx, udi); 174 drive = libhal_drive_from_udi (hal_ctx, udi); 178 handle_unmount (hal_ctx, 195 drive = libhal_drive_from_udi (hal_ctx, drive_udi); 199 handle_unmount (hal_ctx,
|
H A D | hal-storage-eject.c | 83 LibHalContext *hal_ctx = NULL; local 110 if ((hal_ctx = libhal_ctx_init_direct (&error)) == NULL) { 160 if ((volume = libhal_volume_from_udi (hal_ctx, udi)) != NULL) { 169 if ((drive = libhal_drive_from_udi (hal_ctx, drive_udi)) == NULL) { 174 volume_udis = libhal_drive_find_all_volumes (hal_ctx, drive, &num_volumes); 186 volume_to_unmount = libhal_volume_from_udi (hal_ctx, volume_udi); 201 handle_unmount (hal_ctx, 222 handle_eject (hal_ctx,
|
H A D | hal-storage-zpool.c | 100 handle_zpool (LibHalContext *hal_ctx, argument 181 LibHalContext *hal_ctx = NULL; local 202 if ((hal_ctx = libhal_ctx_init_direct (&error)) == NULL) { 224 if ((volume = libhal_volume_from_udi (hal_ctx, udi)) == NULL) { 230 if ((drive = libhal_drive_from_udi (hal_ctx, drive_udi)) == NULL) { 242 handle_zpool (hal_ctx,
|
H A D | hal_set_property.c | 39 static LibHalContext *hal_ctx; variable 224 if ((hal_ctx = libhal_ctx_new ()) == NULL) { 228 if (!libhal_ctx_set_dbus_connection (hal_ctx, dbus_bus_get (DBUS_BUS_SYSTEM, &error))) { 233 if (!libhal_ctx_init (hal_ctx, &error)) { 244 udi_exists = libhal_device_exists (hal_ctx, udi, &error); 256 rc = libhal_device_remove_property (hal_ctx, udi, key, &error); 269 rc = libhal_device_set_property_string (hal_ctx, udi, key, str_value, &error); 272 rc = libhal_device_set_property_int (hal_ctx, udi, key, int_value, &error); 275 rc = libhal_device_set_property_uint64 (hal_ctx, udi, key, uint64_value, &error); 278 rc = libhal_device_set_property_double (hal_ctx, ud [all...] |
H A D | hal-device.c | 71 int dump_devices(LibHalContext *hal_ctx, char *arg); 72 int remove_udi(LibHalContext *hal_ctx, char *arg); 73 int add_udi(LibHalContext *hal_ctx, char *arg); 74 void process_property(LibHalContext *hal_ctx, char *buf, lh_prop_t **prop); 75 int add_properties(LibHalContext *hal_ctx, new_dev_t *nd, lh_prop_t *prop); 104 LibHalContext *hal_ctx; local 140 if (!(hal_ctx = libhal_ctx_new())) return 3; 141 if (!libhal_ctx_set_dbus_connection(hal_ctx, conn)) return 4; 142 if (!libhal_ctx_init(hal_ctx, &error)) { 154 err = dump_devices(hal_ctx, arg 188 dump_devices(LibHalContext *hal_ctx, char *arg) argument 304 remove_udi(LibHalContext *hal_ctx, char *arg) argument 340 add_udi(LibHalContext *hal_ctx, char *arg) argument 447 process_property(LibHalContext *hal_ctx, char *buf, lh_prop_t **prop) argument 545 add_properties(LibHalContext *hal_ctx, new_dev_t *nd, lh_prop_t *prop) argument [all...] |
H A D | lshal.c | 62 static LibHalContext *hal_ctx; variable 98 props = libhal_device_get_all_properties (hal_ctx, udi, &error); 185 if (!libhal_device_exists (hal_ctx, udi, &error)) { 259 device_names = libhal_get_all_devices (hal_ctx, &num_devices, &error); 273 devices[i].parent = libhal_device_get_property_string (hal_ctx, 405 type = libhal_device_get_property_type (hal_ctx, udi, key, &error); 409 str = libhal_device_get_property_string (hal_ctx, udi, key, &error); 415 dbus_int32_t value = libhal_device_get_property_int (hal_ctx, udi, key, &error); 422 dbus_uint64_t value = libhal_device_get_property_uint64 (hal_ctx, udi, key, &error); 429 libhal_device_get_property_double (hal_ctx, ud [all...] |
H A D | hal-storage-shared.c | 259 handle_unmount (LibHalContext *hal_ctx, argument 298 if (libhal_device_get_property_bool (hal_ctx, udi, "volume.ignore", &error) || 533 handle_eject (LibHalContext *hal_ctx, argument
|
H A D | hal-storage-mount.c | 267 volume_findby (LibHalContext *hal_ctx, const char *property, const char *value) argument 277 if ((hal_udis = libhal_manager_find_device_string_match (hal_ctx, property, 285 if (libhal_device_query_capability (hal_ctx, udi, "volume", &error)) { 294 result = libhal_volume_from_udi (hal_ctx, found_udi); 302 bailout_if_in_fstab (LibHalContext *hal_ctx, const char *device, const char *label, const char *uuid) argument 349 mounted_vol = volume_findby (hal_ctx, "volume.mount_point", _mount_point); 448 handle_mount (LibHalContext *hal_ctx, argument 514 if (libhal_device_get_property_bool (hal_ctx, udi, "volume.ignore", &error) || 537 bailout_if_in_fstab (hal_ctx, device, label, uuid); 586 append_ro = libhal_device_get_property_bool (hal_ctx, libhal_drive_get_ud 1135 LibHalContext *hal_ctx = NULL; local [all...] |
/osnet-11/usr/src/lib/hal/libhal-storage/common/ |
H A D | libhal-storage.c | 716 LibHalContext *hal_ctx; member in struct:LibHalDrive_s 890 * @param hal_ctx libhal context 895 libhal_drive_from_udi (LibHalContext *hal_ctx, const char *udi) argument 904 LIBHAL_CHECK_LIBHALCONTEXT(hal_ctx, NULL); 911 if (!libhal_device_query_capability (hal_ctx, udi, "storage", &error)) 919 drive->hal_ctx = hal_ctx; 925 properties = libhal_device_get_all_properties (hal_ctx, udi, &error); 1084 * @param hal_ctx libhal context 1089 libhal_volume_from_udi (LibHalContext *hal_ctx, cons argument 1303 libhal_drive_from_device_file(LibHalContext *hal_ctx, const char *device_file) argument 1366 libhal_volume_from_device_file(LibHalContext *hal_ctx, const char *device_file) argument 1706 libhal_drive_find_all_volumes(LibHalContext *hal_ctx, LibHalDrive *drive, int *num_volumes) argument 1759 libhal_volume_crypto_get_clear_volume_udi(LibHalContext *hal_ctx, LibHalVolume *volume) argument 1791 libhal_drive_policy_default_get_mount_root(LibHalContext *hal_ctx) argument 1807 libhal_drive_policy_default_use_managed_keyword(LibHalContext *hal_ctx) argument 1823 libhal_drive_policy_default_get_managed_keyword_primary(LibHalContext *hal_ctx) argument 1839 libhal_drive_policy_default_get_managed_keyword_secondary(LibHalContext *hal_ctx) argument 1878 mopts_collect(LibHalContext *hal_ctx, const char *namespace, int namespace_len, const char *udi, char *options_string, size_t options_max_len, dbus_bool_t only_collect_imply_opts) argument [all...] |