Home
last modified time | relevance | path

Searched refs:pval (Results 1 – 25 of 65) sorted by last modified time

123

/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_main.c656 char *pval; in add_prop_list_default() local
658 if (nvlist_lookup_string(*props, propname, &pval) == 0) in add_prop_list_default()
/illumos-gate/usr/src/cmd/pools/poolstat/
H A Dpoolstat.c743 pool_value_t *pval; in create_pool_value() local
745 if ((pval = pool_value_alloc()) == NULL) { in create_pool_value()
748 if (pool_value_set_name(pval, name) != PO_SUCCESS) { in create_pool_value()
749 pool_value_free(pval); in create_pool_value()
753 return (pval); in create_pool_value()
/illumos-gate/usr/src/cmd/truss/
H A Dprint.c2847 long pval = val & RCTL_LOCAL_ACTION_MASK; in prt_rsf() local
2864 if (pval & RCTL_USE_RECIPIENT_PID) { in prt_rsf()
2865 pval ^= RCTL_USE_RECIPIENT_PID; in prt_rsf()
2870 if ((pval & RCTLSYS_ACTION_MASK) != 0) in prt_rsf()
/illumos-gate/usr/src/lib/libpool/common/
H A Dpool_kernel.c877 pool_value_t *pval, void *user) in prop_build_cb() argument
882 name, pval)); in prop_build_cb()
H A Dpool_internal.c415 elem_no_set(pool_elem_t *elem, const pool_value_t *pval) in elem_no_set() argument
430 if (pool_value_get_string(pval, &nm) != PO_SUCCESS) { in elem_set_name()
469 if (pool_value_get_type(pval) == POC_STRING) in elem_set_string()
484 if (pool_value_get_type(pval) == POC_BOOL) in elem_set_bool()
499 if (pool_value_get_type(pval) == POC_UINT) in elem_set_uint()
531 if (pool_value_get_type(pval) != POC_BOOL) { in pool_set_active()
535 (void) pool_value_get_bool(pval, &bval); in pool_set_active()
554 if (pool_value_get_string(pval, &sched) != 0) { in pool_set_scheduler()
575 if (pool_value_get_uint64(pval, &max) != PO_SUCCESS) { in res_set_max()
629 if (pool_value_get_uint64(pval, &min) != PO_SUCCESS) { in res_set_min()
[all …]
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_xml.c1443 lxml_get_paramval(pgroup_t *pgrp, const char *propname, xmlNodePtr pval) in lxml_get_paramval() argument
1451 value = (char *)xmlGetProp(pval, (xmlChar *)value_attr); in lxml_get_paramval()
/illumos-gate/usr/src/uts/common/io/
H A Dasy.c214 #define GET_PROP(devi, pname, pflag, pval, plen) \ argument
216 (pflag), (pname), (caddr_t)(pval), (plen)))
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_mod.c1083 char *pname, *pval; in topo_mod_create_ufm_slot() local
1091 if ((rc -= nvpair_value_string(elem, &pval)) != 0) in topo_mod_create_ufm_slot()
1096 pval, &err); in topo_mod_create_ufm_slot()
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_persist.c373 char *pval; in ipmgmt_db_getprop() local
383 &pval)) == 0) { in ipmgmt_db_getprop()
426 char pval[MAXPROPVALLEN]; in ipmgmt_db_resetprop() local
438 bzero(pval, sizeof (pval)); in ipmgmt_db_resetprop()
444 if (pval[0] != '\0') in ipmgmt_db_resetprop()
445 (void) strlcat(pval, ",", in ipmgmt_db_resetprop()
447 (void) strlcat(pval, val, in ipmgmt_db_resetprop()
664 char pval[MAXPROPVALLEN]; in ipmgmt_db_update() local
1763 "for property %s: %s", pval, pname, in ipmgmt_set_scfprop_value()
1822 void *pval, scf_type_t ptype) in ipmgmt_get_scfprop() argument
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dzfs_vfsops.c1433 uint64_t pval; in zfs_domount() local
1437 if (error = dsl_prop_get_integer(osname, "xattr", &pval, NULL)) in zfs_domount()
1439 xattr_changed_cb(zfsvfs, pval); in zfs_domount()
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_addr.c961 prefixlen = strtoul(pval, &end, 10); in i_ipadm_set_prefixlen()
1014 if (strcmp(pval, IPADM_ONSTR) == 0) in i_ipadm_set_addr_flag()
1016 else if (strcmp(pval, IPADM_OFFSTR) == 0) in i_ipadm_set_addr_flag()
1065 if (strcmp(pval, "all-zones") == 0) { in i_ipadm_set_zone()
1111 status = ipadm_set_reqhost(ipaddr, pval); in i_ipadm_set_reqhost()
1691 (!reset && pval == NULL)) { in ipadm_set_addrprop()
1750 pval = defbuf; in ipadm_set_addrprop()
3490 char pbuf[MAXPROPVALLEN], *pval = NULL; in i_ipadm_addr_persist() local
3507 pval = pbuf; in i_ipadm_addr_persist()
3515 pval = ipaddr->ipadm_reqhost; in i_ipadm_addr_persist()
[all …]
/illumos-gate/usr/src/uts/common/io/cardbus/
H A Dcardbus_cfg.c230 int *pval, int len);
232 char *pval);
4249 cardbus_force_intprop(dev_info_t *dip, char *pname, int *pval, int len) argument
4254 pname, pval, len)) != DDI_SUCCESS) {
4258 (caddr_t)pval, len*sizeof (int))
4267 cardbus_force_stringprop(dev_info_t *dip, char *pname, char *pval) argument
4272 pname, pval)) != DDI_SUCCESS) {
4276 pval, strlen(pval) + 1) != DDI_SUCCESS)
4280 pname, pval);
/illumos-gate/usr/src/uts/common/io/nge/
H A Dnge_ndd.c59 nge_nd_get_prop_val(dev_info_t *dip, char *nm, long min, long max, int *pval) in nge_nd_get_prop_val() argument
68 *pval = NGE_PROP_GET_INT(dip, nm); in nge_nd_get_prop_val()
69 if (*pval >= min && *pval <= max) in nge_nd_get_prop_val()
/illumos-gate/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c77 char *pval = val; in tcp_listener_conf_get() local
82 bzero(pval, psize); in tcp_listener_conf_get()
92 nbytes = snprintf(pval, size, "%d:%d", tl->tl_port, in tcp_listener_conf_get()
95 nbytes = snprintf(pval, size, ",%d:%d", tl->tl_port, in tcp_listener_conf_get()
98 pval += nbytes; in tcp_listener_conf_get()
117 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_add() argument
166 const char *ifname, const void* pval, uint_t flags) in tcp_listener_conf_del() argument
198 cr, pinfo, ifname, pval, flags)); in tcp_set_buf_prop()
256 CC_DEFAULT_ALGO_NAME : (char *)pval; in tcp_set_cc_algorithm()
293 tcp_copy_ccname_t cd = { pval, psize, 0 }; in tcp_get_cc_algorithm()
[all …]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_if.c8942 char *pname, *pval, *buf; in ip_process_legacy_nddprop() local
8957 pval = buf = pname = (char *)mp1->b_rptr; in ip_process_legacy_nddprop()
8987 while (*pval++) in ip_process_legacy_nddprop()
8990 if (!*pval || pval >= (char *)mp1->b_wptr) { in ip_process_legacy_nddprop()
8993 pinfo, NULL, pval, 0)) == 0) { in ip_process_legacy_nddprop()
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/ontario/common/
H A Dontario.c608 char *pval; in ontario_get_first_compatible_value() local
616 pval = malloc(pinfo.size); in ontario_get_first_compatible_value()
617 if (pval == NULL) in ontario_get_first_compatible_value()
619 err = picl_get_propval(proph, pval, pinfo.size); in ontario_get_first_compatible_value()
621 free(pval); in ontario_get_first_compatible_value()
624 *outbuf = pval; in ontario_get_first_compatible_value()
644 pval = malloc(pinfo.size); in ontario_get_first_compatible_value()
645 if (pval == NULL) in ontario_get_first_compatible_value()
648 err = picl_get_propval(rowproph, pval, pinfo.size); in ontario_get_first_compatible_value()
650 free(pval); in ontario_get_first_compatible_value()
[all …]
H A Dpelton.c402 char *pval; in pelton_get_first_compatible_value() local
410 pval = malloc(pinfo.size); in pelton_get_first_compatible_value()
411 if (pval == NULL) in pelton_get_first_compatible_value()
413 err = picl_get_propval(proph, pval, pinfo.size); in pelton_get_first_compatible_value()
415 free(pval); in pelton_get_first_compatible_value()
418 *outbuf = pval; in pelton_get_first_compatible_value()
438 pval = malloc(pinfo.size); in pelton_get_first_compatible_value()
439 if (pval == NULL) in pelton_get_first_compatible_value()
442 err = picl_get_propval(rowproph, pval, pinfo.size); in pelton_get_first_compatible_value()
444 free(pval); in pelton_get_first_compatible_value()
[all …]
H A Dstpaul.c463 char *pval; in stpaul_get_first_compatible_value() local
471 pval = malloc(pinfo.size); in stpaul_get_first_compatible_value()
472 if (pval == NULL) in stpaul_get_first_compatible_value()
474 err = picl_get_propval(proph, pval, pinfo.size); in stpaul_get_first_compatible_value()
476 free(pval); in stpaul_get_first_compatible_value()
479 *outbuf = pval; in stpaul_get_first_compatible_value()
499 pval = malloc(pinfo.size); in stpaul_get_first_compatible_value()
500 if (pval == NULL) in stpaul_get_first_compatible_value()
503 err = picl_get_propval(rowproph, pval, pinfo.size); in stpaul_get_first_compatible_value()
505 free(pval); in stpaul_get_first_compatible_value()
[all …]
H A Dhuron.c392 char *pval; in huron_get_first_compatible_value() local
400 pval = malloc(pinfo.size); in huron_get_first_compatible_value()
401 if (pval == NULL) in huron_get_first_compatible_value()
403 err = picl_get_propval(proph, pval, pinfo.size); in huron_get_first_compatible_value()
405 free(pval); in huron_get_first_compatible_value()
408 *outbuf = pval; in huron_get_first_compatible_value()
428 pval = malloc(pinfo.size); in huron_get_first_compatible_value()
429 if (pval == NULL) in huron_get_first_compatible_value()
432 err = picl_get_propval(rowproph, pval, pinfo.size); in huron_get_first_compatible_value()
434 free(pval); in huron_get_first_compatible_value()
[all …]
H A Derie.c262 char *pval; in erie_get_first_compatible_value() local
270 pval = malloc(pinfo.size); in erie_get_first_compatible_value()
271 if (pval == NULL) in erie_get_first_compatible_value()
273 err = picl_get_propval(proph, pval, pinfo.size); in erie_get_first_compatible_value()
275 free(pval); in erie_get_first_compatible_value()
278 *outbuf = pval; in erie_get_first_compatible_value()
298 pval = malloc(pinfo.size); in erie_get_first_compatible_value()
299 if (pval == NULL) in erie_get_first_compatible_value()
302 err = picl_get_propval(rowproph, pval, pinfo.size); in erie_get_first_compatible_value()
304 free(pval); in erie_get_first_compatible_value()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/montoya/common/
H A Dmontoya.c492 char *pval; in montoya_get_first_compatible_value() local
500 pval = malloc(pinfo.size); in montoya_get_first_compatible_value()
501 if (pval == NULL) in montoya_get_first_compatible_value()
503 err = picl_get_propval(proph, pval, pinfo.size); in montoya_get_first_compatible_value()
505 free(pval); in montoya_get_first_compatible_value()
508 *outbuf = pval; in montoya_get_first_compatible_value()
528 pval = malloc(pinfo.size); in montoya_get_first_compatible_value()
529 if (pval == NULL) in montoya_get_first_compatible_value()
532 err = picl_get_propval(rowproph, pval, pinfo.size); in montoya_get_first_compatible_value()
534 free(pval); in montoya_get_first_compatible_value()
[all …]
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/monza/common/
H A Dmonza.c537 char *pval; in monza_get_first_compatible_value() local
545 pval = malloc(pinfo.size); in monza_get_first_compatible_value()
546 if (pval == NULL) in monza_get_first_compatible_value()
548 err = picl_get_propval(proph, pval, pinfo.size); in monza_get_first_compatible_value()
550 free(pval); in monza_get_first_compatible_value()
553 *outbuf = pval; in monza_get_first_compatible_value()
573 pval = malloc(pinfo.size); in monza_get_first_compatible_value()
574 if (pval == NULL) in monza_get_first_compatible_value()
577 err = picl_get_propval(rowproph, pval, pinfo.size); in monza_get_first_compatible_value()
579 free(pval); in monza_get_first_compatible_value()
[all …]
/illumos-gate/usr/src/lib/libpicltree/
H A Dpicltree.h132 picl_prop_type_t ptype, void *pval, size_t valsize,
/illumos-gate/usr/src/lib/libpicl/
H A Dpicl.h159 picl_prop_type_t ptype, void *pval, size_t valsize,
H A Dpicl.c811 void *pval, size_t valsize, picl_nodehdl_t *retnodeh) in picl_find_node() argument
829 (void) memcpy(req->valbuf, pval, valsize); in picl_find_node()

123