/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | property.c | 55 hal_property_free (HalProperty *prop) in hal_property_free() argument 58 g_free (prop->key); in hal_property_free() 60 if (prop->type == HAL_PROPERTY_TYPE_STRING) { in hal_property_free() 61 g_free (prop->v.str_value); in hal_property_free() 62 } else if (prop->type == HAL_PROPERTY_TYPE_STRLIST) { in hal_property_free() 64 for (i = prop->v.strlist_value; i != NULL; i = g_slist_next (i)) { in hal_property_free() 67 g_slist_free (prop->v.strlist_value); in hal_property_free() 70 g_free (prop); in hal_property_free() 76 HalProperty *prop; in hal_property_new_string() local 80 prop = g_new0 (HalProperty, 1); in hal_property_new_string() [all …]
|
H A D | device.c | 496 HalProperty *prop; in hal_device_property_to_string() local 498 prop = hal_device_property_find (device, key); in hal_device_property_to_string() 499 if (!prop) in hal_device_property_to_string() 502 return hal_property_to_string (prop); in hal_device_property_to_string() 529 HalProperty *prop; in hal_device_property_get_type() local 534 prop = hal_device_property_find (device, key); in hal_device_property_get_type() 536 if (prop != NULL) in hal_device_property_get_type() 537 return hal_property_get_type (prop); in hal_device_property_get_type() 545 HalProperty *prop; in hal_device_property_get_string() local 550 prop = hal_device_property_find (device, key); in hal_device_property_get_string() [all …]
|
H A D | property.h | 48 void hal_property_free (HalProperty *prop); 62 const char *hal_property_get_key (HalProperty *prop); 63 int hal_property_get_type (HalProperty *prop); 64 char *hal_property_to_string (HalProperty *prop); 66 const char *hal_property_get_string (HalProperty *prop); 67 dbus_int32_t hal_property_get_int (HalProperty *prop); 68 dbus_uint64_t hal_property_get_uint64 (HalProperty *prop); 69 dbus_bool_t hal_property_get_bool (HalProperty *prop); 70 double hal_property_get_double (HalProperty *prop); 71 GSList *hal_property_get_strlist (HalProperty *prop); [all …]
|
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pci_props.c | 164 pci_prop_class_match(const pci_prop_data_t *prop, const pci_prop_class_t *class, in pci_prop_class_match() argument 168 if (prop->ppd_class == class[i].ppc_class && in pci_prop_class_match() 169 prop->ppd_subclass == class[i].ppc_subclass && in pci_prop_class_match() 170 (!check_pi || prop->ppd_pi == class[i].ppc_pi)) { in pci_prop_class_match() 208 pci_prop_class_is_vga(const pci_prop_data_t *prop) in pci_prop_class_is_vga() argument 210 return (pci_prop_class_match(prop, pci_prop_vga_classes, in pci_prop_class_is_vga() 215 pci_prop_class_is_ioapic(const pci_prop_data_t *prop) in pci_prop_class_is_ioapic() argument 217 return (pci_prop_class_match(prop, pci_prop_ioapic_classes, in pci_prop_class_is_ioapic() 228 pci_prop_class_is_isa(const pci_prop_data_t *prop) in pci_prop_class_is_isa() argument 230 return (pci_prop_class_match(prop, pci_prop_isa_classes, in pci_prop_class_is_isa() [all …]
|
/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | net-install | 148 prop=`$SVCPROP -p $NET_V4IF/name $NET_INSTALL_FMRI` 149 if [ $? -ne 0 -o "$prop" = "$NET_UNDEFINED_STRING_PROP" ]; then 152 net_install_name=$prop 158 prop=`$SVCPROP -p $NET_V4IF/address_type $NET_INSTALL_FMRI` 159 if [ $? -ne 0 -o "$prop" = "$NET_UNDEFINED_STRING_PROP" ]; then 165 case $prop in 167 net_install_addrtype=$prop 170 msg="Bad value, \"$prop\", defined for the \"address_type\" " 183 prop=`$SVCPROP -p $NET_V4IF/static_address $NET_INSTALL_FMRI` 184 if [ $? -eq 0 -a "$prop" != "$NET_UNDEFINED_STRING_PROP" ]; then [all …]
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zprop_common.c | 71 zprop_register_impl(int prop, const char *name, zprop_type_t type, in zprop_register_impl() argument 79 pd = &prop_tbl[prop]; in zprop_register_impl() 86 pd->pd_propnum = prop; in zprop_register_impl() 103 zprop_register_string(int prop, const char *name, const char *def, in zprop_register_string() argument 107 zprop_register_impl(prop, name, PROP_TYPE_STRING, 0, def, attr, in zprop_register_string() 113 zprop_register_number(int prop, const char *name, uint64_t def, in zprop_register_number() argument 117 zprop_register_impl(prop, name, PROP_TYPE_NUMBER, def, NULL, attr, in zprop_register_number() 122 zprop_register_index(int prop, const char *name, uint64_t def, in zprop_register_index() argument 126 zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr, in zprop_register_index() 131 zprop_register_hidden(int prop, const char *name, zprop_type_t type, in zprop_register_hidden() argument [all …]
|
H A D | zfs_prop.c | 542 zfs_prop_delegatable(zfs_prop_t prop) in zfs_prop_delegatable() argument 544 zprop_desc_t *pd = &zfs_prop_table[prop]; in zfs_prop_delegatable() 547 if (prop == ZFS_PROP_MLSLABEL) in zfs_prop_delegatable() 606 zfs_userquota_prop_t prop; in zfs_prop_userquota() local 608 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) { in zfs_prop_userquota() 609 if (strncmp(name, zfs_userquota_prop_prefixes[prop], in zfs_prop_userquota() 610 strlen(zfs_userquota_prop_prefixes[prop])) == 0) { in zfs_prop_userquota() 635 zfs_prop_string_to_index(zfs_prop_t prop, const char *string, uint64_t *index) in zfs_prop_string_to_index() argument 637 return (zprop_string_to_index(prop, string, index, ZFS_TYPE_DATASET)); in zfs_prop_string_to_index() 641 zfs_prop_index_to_string(zfs_prop_t prop, uint64_t index, const char **string) in zfs_prop_index_to_string() argument [all …]
|
H A D | zpool_prop.c | 167 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument 169 return (zpool_prop_table[prop].pd_name); in zpool_prop_to_name() 173 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument 175 return (zpool_prop_table[prop].pd_proptype); in zpool_prop_get_type() 179 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument 181 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); in zpool_prop_readonly() 185 zpool_prop_default_string(zpool_prop_t prop) in zpool_prop_default_string() argument 187 return (zpool_prop_table[prop].pd_strdefault); in zpool_prop_default_string() 191 zpool_prop_default_numeric(zpool_prop_t prop) in zpool_prop_default_numeric() argument 193 return (zpool_prop_table[prop].pd_numdefault); in zpool_prop_default_numeric() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | zfs_set_common.kshlib | 52 typeset prop=$2 59 [[ -n $prop ]] && old_value=$(get_prop $prop $dataset) 62 [[ -z $prop || -z $dataset ]] && \ 65 log_must zfs set $prop=$expect_value $dataset 70 [[ -n $prop ]] && cur_value=$(get_prop $prop $dataset) 72 case $prop in 76 log_fail "The '$dataset' '$prop' value \ 79 log_fail "The '$dataset' '$prop' value '$cur_value' \ 85 log_fail "The '$dataset' '$prop' value '$cur_value' \ 92 log_mustnot zfs set $prop=$expect_value $dataset [all …]
|
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo.c | 1449 di_prop_next(di_node_t node, di_prop_t prop) in di_prop_next() argument 1464 if (prop != DI_PROP_NIL) in di_prop_next() 1465 list = DI_PROP(prop)->prop_list; in di_prop_next() 1470 prop = di_prop_drv_next(node, prop); in di_prop_next() 1473 prop = di_prop_sys_next(node, prop); in di_prop_next() 1476 prop = di_prop_global_next(node, prop); in di_prop_next() 1479 prop = di_prop_hw_next(node, prop); in di_prop_next() 1485 } while ((prop == DI_PROP_NIL) && (list <= DI_PROP_HW_LIST)); in di_prop_next() 1487 return (prop); in di_prop_next() 1491 di_prop_devt(di_prop_t prop) in di_prop_devt() argument [all …]
|
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_property.c | 45 zfs_prop_t prop; member 167 create_BasicProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop, in create_BasicProperty() argument 178 int result = zfs_prop_get(zhp, prop, propbuf, in create_BasicProperty() 186 zhp, prop, &value, &srctype, source, sizeof (source)); in create_BasicProperty() 199 env, zfs_prop_to_name(prop)); in create_BasicProperty() 201 jboolean readOnly = zfs_prop_readonly(prop) ? in create_BasicProperty() 239 create_BooleanProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) in create_BooleanProperty() argument 241 return (create_BasicProperty(env, zhp, prop, NULL, zjni_int_to_boolean, in create_BooleanProperty() 246 create_LongProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) in create_LongProperty() argument 248 return (create_BasicProperty(env, zhp, prop, NULL, zjni_long_to_Long, in create_LongProperty() [all …]
|
/illumos-gate/usr/src/lib/libscf/common/ |
H A D | midlevel.c | 78 const char *prop) in assemble_fmri() argument 84 if (prop == NULL) { in assemble_fmri() 103 strlen(prop) + 1; in assemble_fmri() 127 (void) strcat(fmri_buf, prop); in assemble_fmri() 137 fill_prop(scf_property_t *prop, const char *pgname, const char *propname, in fill_prop() argument 174 if (scf_property_type(prop, &ret->pr_type) == -1) in fill_prop() 184 if (scf_iter_property_values(iter, prop) == -1) in fill_prop() 362 scf_simple_pg *thispg, scf_property_t *prop, size_t namelen, in insert_app_props() argument 369 while ((propiter_ret = scf_iter_next_property(propiter, prop)) == 1) { in insert_app_props() 371 if (scf_property_get_name(prop, propname, namelen) < 0) { in insert_app_props() [all …]
|
H A D | highlevel.c | 61 scf_simple_prop_t *prop = NULL; in scf_is_fb_blacklisted() local 87 if ((prop = scf_simple_prop_get(NULL, FMRI_BOOT_CONFIG, in scf_is_fb_blacklisted() 91 numvals = scf_simple_prop_numvalues(prop); in scf_is_fb_blacklisted() 94 platform_name = scf_simple_prop_next_astring(prop); in scf_is_fb_blacklisted() 105 scf_simple_prop_free(prop); in scf_is_fb_blacklisted() 180 scf_propvec_t *prop; in scf_get_boot_config() local 182 for (prop = ua_boot_config; prop->pv_prop != NULL; prop++) in scf_get_boot_config() 183 prop->pv_ptr = &ret; in scf_get_boot_config() 184 prop = NULL; in scf_get_boot_config() 186 B_TRUE, ua_boot_config, &prop) != SCF_FAILED) { in scf_get_boot_config() [all …]
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | cpu_event.c | 828 cpu_idle_prop_impl_t *prop; in cpu_idle_prop_allocate_impl() local 832 prop = kmem_zalloc(sizeof (*prop) * CPU_IDLE_VALUE_GROUP_SIZE, in cpu_idle_prop_allocate_impl() 840 for (i = 0; i < CPU_IDLE_VALUE_GROUP_SIZE; i++, prop++, valp++) { in cpu_idle_prop_allocate_impl() 841 prop->value = valp; in cpu_idle_prop_allocate_impl() 842 prop->next = cpu_idle_prop_free; in cpu_idle_prop_allocate_impl() 843 cpu_idle_prop_free = prop; in cpu_idle_prop_allocate_impl() 852 cpu_idle_prop_impl_t *prop; in cpu_idle_prop_create_property() local 862 for (prop = cpu_idle_prop_busy; prop != NULL; prop = prop->next) { in cpu_idle_prop_create_property() 863 if (strcmp(prop->name, name) == 0) { in cpu_idle_prop_create_property() 869 if (prop == NULL) { in cpu_idle_prop_create_property() [all …]
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | pdevinfo_funcs.c | 118 Prop *prop = NULL; /* tail of properties list */ in dump_node() local 225 else if (prop != NULL) in dump_node() 226 prop->next = new; in dump_node() 227 prop = new; in dump_node() 228 prop->next = NULL; in dump_node() 316 Prop *prop = node->props; in has_board_num() local 322 while (prop != NULL) { in has_board_num() 323 if (strcmp(prop->name.opp.oprom_array, "board#") == 0) in has_board_num() 326 prop = prop->next; in has_board_num() 339 Prop *prop = node->props; in get_board_num() local [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inheritance/ |
H A D | inherit.kshlib | 38 typeset prop=$1 41 prop_val=`zfs get -H -o source $prop $dataset` 44 log_fail "Unable to determine the source of $prop " \ 63 typeset prop=$2 66 prop_src=`get_prop_src $prop $target` 77 log_note "Property $prop of $target has source"\ 83 log_note "Property $prop of $target has source"\ 88 log_note "Property $prop of $expected has source $prop_src"\ 103 typeset prop=$1 107 zfs set $prop=$prop_val $dataset [all …]
|
H A D | inherit_001_pos.ksh | 102 if [[ ${prop[i]} == "recordsize" ]]; then 105 if [[ ${prop[i]} == "mountpoint" ]]; then 106 set_n_verify_prop ${prop[i]} \ 109 set_n_verify_prop ${prop[i]} \ 136 [[ ${prop[idx]} == "recordsize" ]] && break 226 typeset prop=$1 235 prop_val=`get_prop $prop $dataset` 238 if [[ $prop == "mountpoint" ]]; then 250 exp_val=`get_prop $prop $src` 260 if [[ $prop != "aclinherit" || \ [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/dladm/ |
H A D | set-linkprop.ksh | 76 typeset prop=$2 81 [[ -z "$prop" ]] && fatal "missing required prop" 83 oval=$(dladm show-linkprop -c -o value -p $prop $dev | tr -d ' ') 84 [[ $? -eq 0 ]] || fatal "failed to get $prop for $dev" 86 "$prop mismatch on $dev: expected $val, got $oval" 95 typeset prop=$2 100 [[ -z "$prop" ]] && fatal "missing required prop" 104 awk -F, "BEGIN { RS=\";\"; } /^$prop/ { print \$2; }") 106 [[ $? -eq 0 ]] || fatal "failed to get persistent $prop for $dev" 108 "persistent $prop mismatch on $dev: expected $val, got $oval" [all …]
|
/illumos-gate/usr/src/lib/libinetsvc/common/ |
H A D | inetsvc.c | 151 find_prop(const inetd_prop_t *prop, const char *name, inet_type_t type) in find_prop() argument 155 while (prop[i].ip_name != NULL && strcmp(name, prop[i].ip_name) != 0) in find_prop() 158 if (prop[i].ip_name == NULL) in find_prop() 161 if (prop[i].ip_type != type) in find_prop() 164 return ((inetd_prop_t *)prop + i); in find_prop() 173 get_prop_value_int(const inetd_prop_t *prop, const char *name) in get_prop_value_int() argument 177 p = find_prop(prop, name, INET_TYPE_INTEGER); in get_prop_value_int() 187 get_prop_value_count(const inetd_prop_t *prop, const char *name) in get_prop_value_count() argument 191 p = find_prop(prop, name, INET_TYPE_COUNT); in get_prop_value_count() 201 get_prop_value_boolean(const inetd_prop_t *prop, const char *name) in get_prop_value_boolean() argument [all …]
|
/illumos-gate/usr/src/test/util-tests/tests/smbios/ |
H A D | smbios_test_strprop.c | 108 smbios_strprop_t prop; in smbios_test_strprop_verify_badtable() local 116 if (smbios_info_strprop(hdl, sp.smbstr_id, &prop) != -1) { in smbios_test_strprop_verify_badtable() 147 smbios_strprop_t prop; in smbios_test_strprop_verify_badtype() local 159 if (smbios_info_strprop(hdl, sp.smbstr_id, &prop) != -1) { in smbios_test_strprop_verify_badtype() 179 smbios_strprop_t prop; in smbios_test_strprop_verify_basic() local 188 if (smbios_info_strprop(hdl, sp.smbstr_id, &prop) != 0) { in smbios_test_strprop_verify_basic() 194 if (prop.smbsp_prop_id != SMB_STRP_UEFI_DEVPATH) { in smbios_test_strprop_verify_basic() 196 SMB_STRP_UEFI_DEVPATH, prop.smbsp_prop_id); in smbios_test_strprop_verify_basic() 200 if (strcmp(smbios_strprop_id_desc(prop.smbsp_prop_id), in smbios_test_strprop_verify_basic() 203 smbios_strprop_id_desc(prop.smbsp_prop_id)); in smbios_test_strprop_verify_basic() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | consconfig_dacf.c | 164 static void consconfig_free_prop(cons_prop_t *prop); 1571 do_config(cons_state_t *sp, cons_prop_t *prop) in do_config() argument 1577 ASSERT((prop->cp_type == CONS_KBD) || (prop->cp_type == CONS_MS)); in do_config() 1579 dev = prop->cp_dev; in do_config() 1585 ASSERT(dev == prop->cp_dev); /* clone not supported */ in do_config() 1591 consconfig_prepare_dev(lh, prop->cp_pushmod, TR_CAN, in do_config() 1592 sp->cons_input_type, prop->cp_type); in do_config() 1594 if (prop->cp_type == CONS_KBD) { in do_config() 1604 error = consconfig_relink_conskbd(sp, lh, &prop->cp_muxid); in do_config() 1607 error = consconfig_relink_consms(sp, lh, &prop->cp_muxid); in do_config() [all …]
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_impl.c | 168 ddi_hp_property_t prop; in private_options() local 177 if ((rv = pack_properties(options, &prop)) != 0) { in private_options() 188 free_properties(&prop); in private_options() 199 &prop, &results)) in private_options() 204 &prop, &results)) in private_options() 219 free_properties(&prop); in private_options() 262 pack_properties(const char *options, ddi_hp_property_t *prop) in pack_properties() argument 269 (void) memset(prop, 0, sizeof (ddi_hp_property_t)); in pack_properties() 325 prop->nvlist_buf = buf; in pack_properties() 326 prop->buf_size = len; in pack_properties() [all …]
|
/illumos-gate/usr/src/cmd/eeprom/i386/ |
H A D | benv_kvm.c | 33 static int getpropval(struct openpromio *opp, char *prop); 127 getpropval(struct openpromio *opp, char *prop) in getpropval() argument 131 (void) strlcpy(opp->oprom_array, prop, MAXPROPSIZE); in getpropval() 140 getnextprop(struct openpromio *opp, char *prop) in getnextprop() argument 144 (void) strlcpy(opp->oprom_array, prop, MAXPROPSIZE); in getnextprop() 169 prom_getprop(char *prop, int *lenp) in prom_getprop() argument 173 if (!getpropval(opp, prop)) in prom_getprop() 180 prom_nextprop(char *prop) in prom_nextprop() argument 184 if (!getnextprop(opp, prop)) in prom_nextprop() 231 ddi_prop_t *prop, *plist; in get_propval() local [all …]
|
/illumos-gate/usr/src/psm/stand/cpr/common/ |
H A D | support.c | 95 cprop_t *prop, *tail; in cpr_reset_properties() local 133 for (prop_errors = 0, prop = cdef.props, tail = prop + CPR_MAXPROP; in cpr_reset_properties() 134 prop < tail; prop++) { in cpr_reset_properties() 137 prop->mod, prop->name, prop->value); in cpr_reset_properties() 139 if (prop->mod != PROP_MOD) in cpr_reset_properties() 142 len = prom_strlen(prop->value); in cpr_reset_properties() 143 if (prom_setprop(node, prop->name, prop->value, len + 1) < 0 || in cpr_reset_properties() 144 prom_getproplen(node, prop->name) != len) { in cpr_reset_properties() 146 str, prop->name, prop->value); in cpr_reset_properties()
|
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_scfutil.c | 257 scf_property_t *prop; in smb_smf_get_string_property() local 263 prop = scf_property_create(handle->scf_handle); in smb_smf_get_string_property() 264 if (value && prop && in smb_smf_get_string_property() 265 (scf_pg_get_property(handle->scf_pg, propname, prop) == 0)) { in smb_smf_get_string_property() 266 if (scf_property_get_value(prop, value) == 0) { in smb_smf_get_string_property() 278 if (prop != NULL) in smb_smf_get_string_property() 279 scf_property_destroy(prop); in smb_smf_get_string_property() 349 scf_property_t *prop = NULL; in smb_smf_get_integer_property() local 355 prop = scf_property_create(handle->scf_handle); in smb_smf_get_integer_property() 356 if ((prop) && (value) && in smb_smf_get_integer_property() [all …]
|