Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 545) sorted by relevance

12345678910>>...22

/titanic_41/usr/src/cmd/hal/hald/
H A Dproperty.c55 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 Ddevice.c496 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 Dproperty.h48 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 …]
/titanic_41/usr/src/cmd/svc/milestone/
H A Dnet-install148 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 …]
/titanic_41/usr/src/common/zfs/
H A Dzprop_common.c71 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 Dzpool_prop.c148 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument
150 return (zpool_prop_table[prop].pd_name); in zpool_prop_to_name()
154 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument
156 return (zpool_prop_table[prop].pd_proptype); in zpool_prop_get_type()
160 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument
162 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); in zpool_prop_readonly()
166 zpool_prop_default_string(zpool_prop_t prop) in zpool_prop_default_string() argument
168 return (zpool_prop_table[prop].pd_strdefault); in zpool_prop_default_string()
172 zpool_prop_default_numeric(zpool_prop_t prop) in zpool_prop_default_numeric() argument
174 return (zpool_prop_table[prop].pd_numdefault); in zpool_prop_default_numeric()
[all …]
H A Dzfs_prop.c440 zfs_prop_delegatable(zfs_prop_t prop) in zfs_prop_delegatable() argument
442 zprop_desc_t *pd = &zfs_prop_table[prop]; in zfs_prop_delegatable()
445 if (prop == ZFS_PROP_MLSLABEL) in zfs_prop_delegatable()
504 zfs_userquota_prop_t prop; in zfs_prop_userquota() local
506 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) { in zfs_prop_userquota()
507 if (strncmp(name, zfs_userquota_prop_prefixes[prop], in zfs_prop_userquota()
508 strlen(zfs_userquota_prop_prefixes[prop])) == 0) { in zfs_prop_userquota()
533 zfs_prop_string_to_index(zfs_prop_t prop, const char *string, uint64_t *index) in zfs_prop_string_to_index() argument
535 return (zprop_string_to_index(prop, string, index, ZFS_TYPE_DATASET)); in zfs_prop_string_to_index()
539 zfs_prop_index_to_string(zfs_prop_t prop, uint64_t index, const char **string) in zfs_prop_index_to_string() argument
[all …]
/titanic_41/usr/src/lib/libdevinfo/
H A Ddevinfo.c1447 di_prop_next(di_node_t node, di_prop_t prop) in di_prop_next() argument
1462 if (prop != DI_PROP_NIL) in di_prop_next()
1463 list = DI_PROP(prop)->prop_list; in di_prop_next()
1468 prop = di_prop_drv_next(node, prop); in di_prop_next()
1471 prop = di_prop_sys_next(node, prop); in di_prop_next()
1474 prop = di_prop_global_next(node, prop); in di_prop_next()
1477 prop = di_prop_hw_next(node, prop); in di_prop_next()
1483 } while ((prop == DI_PROP_NIL) && (list <= DI_PROP_HW_LIST)); in di_prop_next()
1485 return (prop); in di_prop_next()
1489 di_prop_devt(di_prop_t prop) in di_prop_devt() argument
[all …]
/titanic_41/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_property.c45 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 …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dzfs_set_common.kshlib52 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 …]
/titanic_41/usr/src/lib/libscf/common/
H A Dmidlevel.c76 const char *prop) in assemble_fmri() argument
82 if (prop == NULL) { in assemble_fmri()
101 strlen(prop) + 1; in assemble_fmri()
125 (void) strcat(fmri_buf, prop); in assemble_fmri()
135 fill_prop(scf_property_t *prop, const char *pgname, const char *propname, in fill_prop() argument
172 if (scf_property_type(prop, &ret->pr_type) == -1) in fill_prop()
182 if (scf_iter_property_values(iter, prop) == -1) in fill_prop()
360 scf_simple_pg *thispg, scf_property_t *prop, size_t namelen, in insert_app_props() argument
367 while ((propiter_ret = scf_iter_next_property(propiter, prop)) == 1) { in insert_app_props()
369 if (scf_property_get_name(prop, propname, namelen) < 0) { in insert_app_props()
[all …]
H A Dhighlevel.c59 scf_simple_prop_t *prop = NULL; in scf_is_fb_blacklisted() local
85 if ((prop = scf_simple_prop_get(NULL, FMRI_BOOT_CONFIG, in scf_is_fb_blacklisted()
89 numvals = scf_simple_prop_numvalues(prop); in scf_is_fb_blacklisted()
92 platform_name = scf_simple_prop_next_astring(prop); in scf_is_fb_blacklisted()
103 scf_simple_prop_free(prop); in scf_is_fb_blacklisted()
178 scf_propvec_t *prop; in scf_get_boot_config() local
180 for (prop = ua_boot_config; prop->pv_prop != NULL; prop++) in scf_get_boot_config()
181 prop->pv_ptr = &ret; in scf_get_boot_config()
182 prop = NULL; in scf_get_boot_config()
184 B_TRUE, ua_boot_config, &prop) != SCF_FAILED) { in scf_get_boot_config()
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/inheritance/
H A Dinherit.kshlib38 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 Dinherit_001_pos.ksh101 if [[ ${prop[i]} == "recordsize" ]]; then
104 if [[ ${prop[i]} == "mountpoint" ]]; then
105 set_n_verify_prop ${prop[i]} \
108 set_n_verify_prop ${prop[i]} \
135 [[ ${prop[idx]} == "recordsize" ]] && break
220 typeset prop=$1
229 prop_val=`get_prop $prop $dataset`
232 if [[ $prop == "mountpoint" ]]; then
244 exp_val=`get_prop $prop $src`
254 if [[ $prop != "aclinherit" || \
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dcpu_event.c828 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 …]
/titanic_41/usr/src/lib/libprtdiag/common/
H A Dpdevinfo_funcs.c120 Prop *prop = NULL; /* tail of properties list */ in dump_node() local
227 else if (prop != NULL) in dump_node()
228 prop->next = new; in dump_node()
229 prop = new; in dump_node()
230 prop->next = NULL; in dump_node()
318 Prop *prop = node->props; in has_board_num() local
324 while (prop != NULL) { in has_board_num()
325 if (strcmp(prop->name.opp.oprom_array, "board#") == 0) in has_board_num()
328 prop = prop->next; in has_board_num()
341 Prop *prop = node->props; in get_board_num() local
[all …]
/titanic_41/usr/src/test/util-tests/tests/dladm/
H A Dset-linkprop.ksh76 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 …]
/titanic_41/usr/src/lib/libinetsvc/common/
H A Dinetsvc.c151 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 …]
/titanic_41/usr/src/psm/stand/cpr/common/
H A Dsupport.c95 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()
/titanic_41/usr/src/cmd/eeprom/i386/
H A Dbenv_kvm.c33 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 …]
/titanic_41/usr/src/cmd/hotplugd/
H A Dhotplugd_impl.c168 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 …]
/titanic_41/usr/src/uts/common/io/
H A Dconsconfig_dacf.c160 static void consconfig_free_prop(cons_prop_t *prop);
1572 do_config(cons_state_t *sp, cons_prop_t *prop) in do_config() argument
1578 ASSERT((prop->cp_type == CONS_KBD) || (prop->cp_type == CONS_MS)); in do_config()
1580 dev = prop->cp_dev; in do_config()
1586 ASSERT(dev == prop->cp_dev); /* clone not supported */ in do_config()
1592 consconfig_prepare_dev(lh, prop->cp_pushmod, TR_CAN, in do_config()
1593 sp->cons_input_type, prop->cp_type); in do_config()
1595 if (prop->cp_type == CONS_KBD) { in do_config()
1605 error = consconfig_relink_conskbd(sp, lh, &prop->cp_muxid); in do_config()
1608 error = consconfig_relink_consms(sp, lh, &prop->cp_muxid); in do_config()
[all …]
/titanic_41/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_scfutil.c250 scf_property_t *prop; in smb_smf_get_string_property() local
256 prop = scf_property_create(handle->scf_handle); in smb_smf_get_string_property()
257 if (value && prop && in smb_smf_get_string_property()
258 (scf_pg_get_property(handle->scf_pg, propname, prop) == 0)) { in smb_smf_get_string_property()
259 if (scf_property_get_value(prop, value) == 0) { in smb_smf_get_string_property()
271 if (prop != NULL) in smb_smf_get_string_property()
272 scf_property_destroy(prop); in smb_smf_get_string_property()
344 scf_property_t *prop = NULL; in smb_smf_get_integer_property() local
350 prop = scf_property_create(handle->scf_handle); in smb_smf_get_integer_property()
351 if ((prop) && (value) && in smb_smf_get_integer_property()
[all …]
/titanic_41/usr/src/lib/libpicltree/
H A Dptree_impl.h154 picl_prop_t prop; member
158 #define pinfo_ver u.prop.info.version
159 #define prop_type u.prop.info.piclinfo.type
160 #define prop_size u.prop.info.piclinfo.size
161 #define prop_mode u.prop.info.piclinfo.accessmode
162 #define prop_name u.prop.info.piclinfo.name
163 #define prop_val u.prop.pvalue
164 #define next_row u.prop.next_by_row
165 #define next_col u.prop.next_by_col
166 #define next_prop u.prop.next_in_list
[all …]
/titanic_41/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_inherit/
H A Dzfs_inherit_002_neg.ksh72 for prop in ${props[@]}; do
73 log_mustnot eval "$ZFS inherit $opt $prop $ds \
79 for prop in "${illprops[@]}"; do
80 log_mustnot eval "$ZFS inherit $prop $ds >/dev/null 2>&1"
81 log_mustnot eval "$ZFS inherit -r $prop $ds >/dev/null 2>&1"
98 for prop in ${props[@]}; do
99 log_mustnot eval "$ZFS inherit $prop >/dev/null 2>&1"
100 log_mustnot eval "$ZFS inherit -r $prop >/dev/null 2>&1"

12345678910>>...22