Lines Matching refs:req
687 fds_svc_add(struct ldmsvcs_info *lsp, ds_reg_req_t *req, int minor)
694 if (strcmp(lsp->fmas_svcs.tbl[i]->name, req->svc_id) == 0) {
713 svc->hdl = req->svc_handle;
714 svc->ver.major = req->major_vers;
783 ds_init_req_t *req;
787 req = (ds_init_req_t *)buf;
800 if (fds_negotiate_version(req->major_vers, &new_major, &new_minor)) {
810 R->minor_vers = MIN(new_minor, req->minor_vers);
853 ds_reg_req_t *req;
859 req = (ds_reg_req_t *)buf;
860 msg = (char *)req->svc_id;
865 if (req->svc_id == NULL || strlen(req->svc_id) == 0 ||
866 msg[strlen(req->svc_id)] != '\0') {
871 if (fds_negotiate_version(req->major_vers, &new_major, &new_minor) &&
872 (dup_svcreg = fds_svc_add(lsp, req,
873 MIN(new_minor, req->minor_vers))) == 0) {
890 R->svc_handle = req->svc_handle;
891 R->minor_vers = MIN(new_minor, req->minor_vers);
905 R->svc_handle = req->svc_handle;
922 ds_unreg_req_t *req;
925 req = (ds_unreg_req_t *)buf;
927 if (fds_svc_remove(lsp, req->svc_handle) == 0) {
937 R->svc_handle = req->svc_handle;
950 R->svc_handle = req->svc_handle;