Lines Matching defs:cap
83 static int ds_register(ds_capability_t *cap, ds_ops_t *ops, uint_t flags);
354 ds_register(ds_capability_t *cap, ds_ops_t *ops, uint_t flags)
365 if (cap == NULL || ops == NULL || cap->svc_id == NULL ||
366 cap->vers == NULL || (flags & (~VLDS_REG_CLIENT)) != 0) {
370 if (cap->nvers > VLDS_MAX_VERS) {
378 if (ds_hdl_lookup(cap->svc_id, (flags & VLDS_REG_CLIENT), NULL, 1,
392 ds_string_arg(&vlds_cap.vlds_service, cap->svc_id);
395 for (i = 0; i < cap->nvers; i++) {
396 vlds_vers[i].vlds_major = cap->vers[i].major;
397 vlds_vers[i].vlds_minor = cap->vers[i].minor;
400 vlds_cap.vlds_nver = cap->nvers;
443 dsp->dsl_service = strdup(cap->svc_id);
454 ds_svc_reg(ds_capability_t *cap, ds_ops_t *ops)
456 return (ds_register(cap, ops, 0));
466 ds_clnt_reg(ds_capability_t *cap, ds_ops_t *ops)
468 return (ds_register(cap, ops, VLDS_REG_CLIENT));