Searched refs:attrsz (Results 1 – 5 of 5) sorted by relevance
/illumos-gate/usr/src/cmd/dlmgmtd/ |
H A D | dlmgmt_util.c | 230 size_t attrsz, dladm_datatype_t type) in linkattr_set() argument 241 if (linkattr_equal(headp, attr, attrval, attrsz)) in linkattr_set() 255 if ((newval = calloc(1, attrsz)) == NULL) { in linkattr_set() 264 bcopy(attrval, attrp->lp_val, attrsz); in linkattr_set() 265 attrp->lp_sz = attrsz; in linkattr_set() 303 size_t attrsz) in linkattr_equal() argument 311 return ((saved_attrsz == attrsz) && in linkattr_equal() 312 (memcmp(saved_attrval, attrval, attrsz) == 0)); in linkattr_equal() 600 size_t attrsz; in dlmgmt_getattr_common() local 603 err = linkattr_get(headp, attr, &attrval, &attrsz, &attrtype); in dlmgmt_getattr_common() [all …]
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | libdlmgmt.c | 456 void *attrval, size_t attrsz) in dladm_get_conf_field() argument 460 if (attrval == NULL || attrsz == 0 || attr == NULL) in dladm_get_conf_field() 472 if (oattrsz > attrsz) in dladm_get_conf_field() 493 if (retval.lr_attrsz > attrsz) in dladm_get_conf_field() 507 const char *last_attr, char *attr, void *attrval, size_t attrsz, in dladm_getnext_conf_linkprop() argument 516 if (nvl == NULL || attrval == NULL || attrsz == 0 || attr == NULL || in dladm_getnext_conf_linkprop() 537 if (oattrsz > attrsz) in dladm_getnext_conf_linkprop() 661 size_t attrsz; in dladm_set_conf_field() local 671 attrsz = strlen(attrval) + 1; in dladm_set_conf_field() 673 attrsz = dladm_datatype_size[type]; in dladm_set_conf_field() [all …]
|
H A D | libdloverlay.c | 1161 size_t attrsz; in i_dladm_overlay_fetch_persistent_config() local 1192 attr, attrval, sizeof (attrval), &attrsz) == DLADM_STATUS_OK) { in i_dladm_overlay_fetch_persistent_config()
|
H A D | linkprop.c | 3854 size_t attrsz; in i_dladm_walk_linkprop_priv_db() local 3865 attr, attrval, MAXLINKATTRVALLEN, &attrsz)) == DLADM_STATUS_OK) { in i_dladm_walk_linkprop_priv_db()
|
/illumos-gate/usr/src/uts/common/io/dls/ |
H A D | dls_mgmt.c | 606 size_t attrsz = sizeof (uint64_t); in dls_mgmt_get_phydev() local 608 if (i_dls_mgmt_get_linkattr(linkid, FPHYMAJ, &maj, &attrsz) != 0 || in dls_mgmt_get_phydev() 609 attrsz != sizeof (uint64_t) || in dls_mgmt_get_phydev() 610 i_dls_mgmt_get_linkattr(linkid, FPHYINST, &inst, &attrsz) != 0 || in dls_mgmt_get_phydev() 611 attrsz != sizeof (uint64_t)) { in dls_mgmt_get_phydev()
|