Home
last modified time | relevance | path

Searched refs:attrsz (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_util.c230 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 Dlibdlmgmt.c456 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 Dlibdloverlay.c1161 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 Dlinkprop.c3854 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 Ddls_mgmt.c606 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()