Searched refs:prop (Results 1 - 25 of 357) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/hal/hald/
H A Dproperty.c55 hal_property_free (HalProperty *prop) argument
58 g_free (prop->key);
60 if (prop->type == HAL_PROPERTY_TYPE_STRING) {
61 g_free (prop->v.str_value);
62 } else if (prop->type == HAL_PROPERTY_TYPE_STRLIST) {
64 for (i = prop->v.strlist_value; i != NULL; i = g_slist_next (i)) {
67 g_slist_free (prop->v.strlist_value);
70 g_free (prop);
76 HalProperty *prop; local
80 prop
103 HalProperty *prop; local
117 HalProperty *prop; local
131 HalProperty *prop; local
145 HalProperty *prop; local
157 hal_property_get_key(HalProperty *prop) argument
165 hal_property_get_type(HalProperty *prop) argument
173 hal_property_get_string(HalProperty *prop) argument
182 hal_property_get_int(HalProperty *prop) argument
191 hal_property_get_uint64(HalProperty *prop) argument
200 hal_property_get_bool(HalProperty *prop) argument
209 hal_property_to_string(HalProperty *prop) argument
258 hal_property_get_double(HalProperty *prop) argument
267 hal_property_set_string(HalProperty *prop, const char *value) argument
294 hal_property_set_int(HalProperty *prop, dbus_int32_t value) argument
305 hal_property_set_uint64(HalProperty *prop, dbus_uint64_t value) argument
316 hal_property_set_bool(HalProperty *prop, dbus_bool_t value) argument
327 hal_property_set_double(HalProperty *prop, double value) argument
338 hal_property_set_attribute(HalProperty *prop, enum PropertyAttribute attr, gboolean val) argument
358 hal_property_get_attribute(HalProperty *prop, enum PropertyAttribute attr) argument
378 HalProperty *prop; local
390 hal_property_get_strlist(HalProperty *prop) argument
399 hal_property_strlist_append(HalProperty *prop, const char *value) argument
410 hal_property_strlist_prepend(HalProperty *prop, const char *value) argument
421 hal_property_strlist_remove_elem(HalProperty *prop, guint index) argument
442 hal_property_strlist_add(HalProperty *prop, const char *value) argument
459 hal_property_strlist_remove(HalProperty *prop, const char *value) argument
477 hal_property_strlist_clear(HalProperty *prop) argument
[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...]
H A Ddevice.c496 HalProperty *prop; local
498 prop = hal_device_property_find (device, key);
499 if (!prop)
502 return hal_property_to_string (prop);
529 HalProperty *prop; local
534 prop = hal_device_property_find (device, key);
536 if (prop != NULL)
537 return hal_property_get_type (prop);
545 HalProperty *prop; local
550 prop
561 HalProperty *prop; local
625 HalProperty *prop; local
641 HalProperty *prop; local
657 HalProperty *prop; local
673 HalProperty *prop; local
690 HalProperty *prop; local
726 HalProperty *prop; local
760 HalProperty *prop; local
794 HalProperty *prop; local
828 HalProperty *prop; local
896 HalProperty *prop; local
919 HalProperty *prop; local
1042 HalProperty *prop; local
1089 HalProperty *prop; local
1126 HalProperty *prop; local
1158 HalProperty *prop; local
1190 HalProperty *prop; local
1214 HalProperty *prop; local
1248 HalProperty *prop; local
1287 HalProperty *prop; local
[all...]
/illumos-gate/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
[all...]
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Dspa_boot.h39 extern char *spa_get_bootprop(char *prop);
40 extern void spa_free_bootprop(char *prop);
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_inherit/
H A Dzfs_inherit_002_neg.ksh71 for prop in ${props[@]}; do
72 log_mustnot eval "zfs inherit $opt $prop $ds \
78 for prop in "${illprops[@]}"; do
79 log_mustnot eval "zfs inherit $prop $ds >/dev/null 2>&1"
80 log_mustnot eval "zfs inherit -r $prop $ds >/dev/null 2>&1"
97 for prop in ${props[@]}; do
98 log_mustnot eval "zfs inherit $prop >/dev/null 2>&1"
99 log_mustnot eval "zfs inherit -r $prop >/dev/null 2>&1"
H A Dzfs_inherit_001_neg.ksh57 set -A prop $props_str canmount
66 while [[ $i -lt ${#prop[*]} ]]; do
67 orig_val=$(get_prop ${prop[i]} $obj)
69 log_mustnot zfs inherit ${prop[i]} $obj
71 new_val=$(get_prop ${prop[i]} $obj)
74 log_fail "${prop[i]} property changed from $orig_val "
/illumos-gate/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" !
[all...]
/illumos-gate/usr/src/common/zfs/
H A Dzprop_common.c71 zprop_register_impl(int prop, const char *name, zprop_type_t type, argument
79 pd = &prop_tbl[prop];
86 pd->pd_propnum = prop;
103 zprop_register_string(int prop, const char *name, const char *def, argument
107 zprop_register_impl(prop, name, PROP_TYPE_STRING, 0, def, attr,
113 zprop_register_number(int prop, const char *name, uint64_t def, argument
117 zprop_register_impl(prop, name, PROP_TYPE_NUMBER, def, NULL, attr,
122 zprop_register_index(int prop, const char *name, uint64_t def, argument
126 zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr,
131 zprop_register_hidden(int prop, cons argument
169 int i, num_props, size, prop; local
242 zprop_name_to_prop_cb(int prop, void *cb_data) argument
256 int prop; local
269 zprop_string_to_index(int prop, const char *string, uint64_t *index, zfs_type_t type) argument
295 zprop_index_to_string(int prop, uint64_t index, const char **string, zfs_type_t type) argument
324 zprop_random_value(int prop, uint64_t seed, zfs_type_t type) argument
340 zprop_values(int prop, zfs_type_t type) argument
356 zprop_valid_for_type(int prop, zfs_type_t type) argument
375 zprop_width(int prop, boolean_t *fixed, zfs_type_t type) argument
[all...]
H A Dzpool_prop.c149 zpool_prop_to_name(zpool_prop_t prop) argument
151 return (zpool_prop_table[prop].pd_name);
155 zpool_prop_get_type(zpool_prop_t prop) argument
157 return (zpool_prop_table[prop].pd_proptype);
161 zpool_prop_readonly(zpool_prop_t prop) argument
163 return (zpool_prop_table[prop].pd_attr == PROP_READONLY);
167 zpool_prop_default_string(zpool_prop_t prop) argument
169 return (zpool_prop_table[prop].pd_strdefault);
173 zpool_prop_default_numeric(zpool_prop_t prop) argument
175 return (zpool_prop_table[prop]
199 zpool_prop_string_to_index(zpool_prop_t prop, const char *string, uint64_t *index) argument
206 zpool_prop_index_to_string(zpool_prop_t prop, uint64_t index, const char **string) argument
213 zpool_prop_random_value(zpool_prop_t prop, uint64_t seed) argument
221 zpool_prop_values(zpool_prop_t prop) argument
227 zpool_prop_column_name(zpool_prop_t prop) argument
233 zpool_prop_align_right(zpool_prop_t prop) argument
[all...]
H A Dzfs_prop.c452 zfs_prop_delegatable(zfs_prop_t prop) argument
454 zprop_desc_t *pd = &zfs_prop_table[prop];
457 if (prop == ZFS_PROP_MLSLABEL)
516 zfs_userquota_prop_t prop; local
518 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) {
519 if (strncmp(name, zfs_userquota_prop_prefixes[prop],
520 strlen(zfs_userquota_prop_prefixes[prop])) == 0) {
545 zfs_prop_string_to_index(zfs_prop_t prop, cons argument
551 zfs_prop_index_to_string(zfs_prop_t prop, uint64_t index, const char **string) argument
557 zfs_prop_random_value(zfs_prop_t prop, uint64_t seed) argument
566 zfs_prop_valid_for_type(int prop, zfs_type_t types) argument
572 zfs_prop_get_type(zfs_prop_t prop) argument
581 zfs_prop_readonly(zfs_prop_t prop) argument
591 zfs_prop_setonce(zfs_prop_t prop) argument
597 zfs_prop_default_string(zfs_prop_t prop) argument
603 zfs_prop_default_numeric(zfs_prop_t prop) argument
613 zfs_prop_to_name(zfs_prop_t prop) argument
622 zfs_prop_inheritable(zfs_prop_t prop) argument
635 zfs_prop_values(zfs_prop_t prop) argument
646 zfs_prop_is_string(zfs_prop_t prop) argument
657 zfs_prop_column_name(zfs_prop_t prop) argument
667 zfs_prop_align_right(zfs_prop_t prop) argument
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_features_003_pos.ksh61 for prop in $(zpool get all $TESTPOOL | awk '$2 ~ /feature@/ { print $2 }'); do
62 state=$(zpool list -Ho "$prop" $TESTPOOL)
63 if [[ "$prop" != "feature@async_destroy" \
65 log_fail "$prop is enabled on new pool"
H A Dzpool_create_features_004_neg.ksh56 for prop in $properties; do
57 log_mustnot zpool create -f -o "$prop" $TESTPOOL $DISKS
H A Dzpool_create_features_002_pos.ksh50 for prop in $(zpool get all $TESTPOOL | awk '$2 ~ /feature@/ { print $2 }'); do
51 state=$(zpool list -Ho "$prop" $TESTPOOL)
53 log_fail "$prop is enabled on new pool"
/illumos-gate/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' valu
[all...]
H A Dzfs_set_002_neg.ksh56 for prop in ${editable_props[@]}; do
57 log_mustnot eval "zfs set $badarg $prop= $ds >/dev/null 2>&1"
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/routeadm/
H A Dsvc-forwarding57 /usr/sbin/ipadm set-prop -p forwarding=on $proto
58 [ "$proto" = "ipv6" ] && /usr/sbin/ipadm set-prop \
62 /usr/sbin/ipadm set-prop -p forwarding=off $proto
63 [ "$proto" = "ipv6" ] && /usr/sbin/ipadm set-prop \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_create/
H A Dzfs_create_common.kshlib44 typeset prop=$(echo $propstr | awk -F= '{print $1}')
46 typeset value=$(zfs get -H -o value $prop $dtst)
/illumos-gate/usr/src/lib/libscf/common/
H A Dhighlevel.c61 scf_simple_prop_t *prop = NULL; local
87 if ((prop = scf_simple_prop_get(NULL, FMRI_BOOT_CONFIG,
91 numvals = scf_simple_prop_numvalues(prop);
94 platform_name = scf_simple_prop_next_astring(prop);
105 scf_simple_prop_free(prop);
180 scf_propvec_t *prop; local
182 for (prop = ua_boot_config; prop->pv_prop != NULL; prop++)
183 prop
375 scf_property_t *prop; local
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend_011_pos.ksh63 for prop in $(fs_inherit_prop); do
64 value=$(get_prop $prop $POOL/$FS)
65 log_must zfs set $prop=$value $POOL/$FS
72 for prop in $(fs_inherit_prop) ; do
73 zfs inherit $prop $ds
75 log_fail "zfs inherit $prop $ds"
80 for prop in $(vol_inherit_prop) ; do
81 zfs inherit $prop $POOL/$FS/vol
83 log_fail "zfs inherit $prop $POOL/$FS/vol"
/illumos-gate/usr/src/lib/libzfs_jni/common/
H A Dlibzfs_jni_property.c45 zfs_prop_t prop; member in struct:custom_prop_desct
167 create_BasicProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop, argument
178 int result = zfs_prop_get(zhp, prop, propbuf,
186 zhp, prop, &value, &srctype, source, sizeof (source));
199 env, zfs_prop_to_name(prop));
201 jboolean readOnly = zfs_prop_readonly(prop) ?
239 create_BooleanProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) argument
241 return (create_BasicProperty(env, zhp, prop, NULL, zjni_int_to_boolean,
246 create_LongProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) argument
248 return (create_BasicProperty(env, zhp, prop, NUL
253 create_StringProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop) argument
260 create_ObjectProperty(JNIEnv *env, zfs_handle_t *zhp, zfs_prop_t prop, str_to_obj_f convert_str, uint64_to_obj_f convert_uint64, char *propClass, char *valueClass) argument
323 create_default_BasicProperty(JNIEnv *env, zfs_prop_t prop, str_to_obj_f convert_str, uint64_to_obj_f convert_uint64, char *propClass, char *valueClass) argument
371 create_default_BooleanProperty(JNIEnv *env, zfs_prop_t prop) argument
379 create_default_LongProperty(JNIEnv *env, zfs_prop_t prop) argument
387 create_default_StringProperty(JNIEnv *env, zfs_prop_t prop) argument
394 create_default_ObjectProperty(JNIEnv *env, zfs_prop_t prop, str_to_obj_f convert_str, uint64_to_obj_f convert_uint64, char *propClass, char *valueClass) argument
498 zjni_get_default_property(JNIEnv *env, zfs_prop_t prop) argument
534 zjni_get_property_from_name_cb(int prop, void *cb) argument
547 zfs_prop_t prop; local
574 jobject prop; local
591 ((zjni_Collection_t *)proplist)->method_add, prop); local
614 ((zjni_Collection_t *)proplist)->method_add, prop); local
636 ((zjni_Collection_t *)proplist)->method_add, prop); local
660 ((zjni_Collection_t *)proplist)->method_add, prop); local
[all...]
/illumos-gate/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) argument
131 (void) strlcpy(opp->oprom_array, prop, MAXPROPSIZE);
140 getnextprop(struct openpromio *opp, char *prop) argument
144 (void) strlcpy(opp->oprom_array, prop, MAXPROPSIZE);
169 prom_getprop(char *prop, int *lenp) argument
173 if (!getpropval(opp, prop))
180 prom_nextprop(char *prop) argument
184 if (!getnextprop(opp, prop))
231 ddi_prop_t *prop, *plis local
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dclass_id.c47 opp_zalloc(size_t size, const char *prop) argument
54 if (prop != NULL)
55 (void) strcpy(opp->oprom_array, prop);
86 return_property(int prom_fd, const char *prop) argument
90 struct openpromio *opp = opp_zalloc(strlen(prop) + 1, prop);
101 if (proplen > (strlen(prop) + 1)) {
103 opp = opp_zalloc(proplen, prop);
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo.c1447 di_prop_next(di_node_t node, di_prop_t prop) argument
1460 * Find which prop list we are at
1462 if (prop != DI_PROP_NIL)
1463 list = DI_PROP(prop)->prop_list;
1468 prop = di_prop_drv_next(node, prop);
1471 prop = di_prop_sys_next(node, prop);
1474 prop = di_prop_global_next(node, prop);
1489 di_prop_devt(di_prop_t prop) argument
1495 di_prop_name(di_prop_t prop) argument
1504 di_prop_type(di_prop_t prop) argument
1547 di_prop_ints(di_prop_t prop, int **prop_data) argument
1567 di_prop_int64(di_prop_t prop, int64_t **prop_data) argument
1587 di_prop_strings(di_prop_t prop, char **prop_data) argument
1607 di_prop_bytes(di_prop_t prop, uchar_t **prop_data) argument
1630 match_prop(di_prop_t prop, dev_t match_dev, const char *name, int type) argument
1662 di_prop_t prop = DI_PROP_NIL; local
1688 di_prop_t prop = DI_PROP_NIL; local
1714 di_prop_t prop; local
1727 di_prop_t prop; local
1740 di_prop_t prop; local
1753 di_prop_t prop; local
1773 di_prop_next_common(di_node_t node, di_prop_t prop, int prop_type) argument
1833 di_prop_drv_next(di_node_t node, di_prop_t prop) argument
1839 di_prop_sys_next(di_node_t node, di_prop_t prop) argument
1845 di_prop_global_next(di_node_t node, di_prop_t prop) argument
1851 di_prop_hw_next(di_node_t node, di_prop_t prop) argument
1857 di_prop_rawdata(di_prop_t prop, uchar_t **prop_data) argument
2128 di_path_prop_next(di_path_t path, di_path_prop_t prop) argument
2171 di_path_prop_name(di_path_prop_t prop) argument
2179 di_path_prop_len(di_path_prop_t prop) argument
2185 di_path_prop_type(di_path_prop_t prop) argument
2201 di_path_prop_bytes(di_path_prop_t prop, uchar_t **prop_data) argument
2218 di_path_prop_ints(di_path_prop_t prop, int **prop_data) argument
2238 di_path_prop_int64s(di_path_prop_t prop, int64_t **prop_data) argument
2258 di_path_prop_strings(di_path_prop_t prop, char **prop_data) argument
2280 di_path_prop_t prop = DI_PROP_NIL; local
2313 di_path_prop_t prop; local
2326 di_path_prop_t prop; local
2339 di_path_prop_t prop; local
2351 di_path_prop_t prop; local
2898 struct di_prom_prop *prop = (struct di_prom_prop *)prom_prop; local
3048 struct di_prom_prop *prop; local
3148 struct di_prom_prop *prop; local
3174 struct di_prom_prop *prop; local
3217 struct di_prom_prop *prop; local
3244 di_prop_slot_names(di_prop_t prop, di_slot_name_t **prop_data) argument
3273 di_prop_t prop; local
[all...]
/illumos-gate/usr/src/lib/libpicltree/
H A Dptree_impl.h117 picl_obj_t *nodep; /* prop's node or table */
154 picl_prop_t prop; member in union:picl_obj::__anon3762
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
[all...]

Completed in 113 milliseconds

1234567891011>>