Lines Matching refs:req
222 cpc_request_t *req, *next;
255 for (req = csp->cs_request; req != NULL; req = next) {
256 next = req->cr_next;
258 if (req->cr_nattrs != 0)
259 free(req->cr_attr);
261 free(req);
277 cpc_request_t *req;
296 if ((req = malloc(sizeof (*req))) == NULL) {
301 (void) strncpy(req->cr_event, event, CPC_MAX_EVENT_LEN);
302 req->cr_preset = preset;
303 req->cr_flags = flags;
304 req->cr_nattrs = nattrs;
305 req->cr_index = set->cs_nreqs;
306 req->cr_attr = NULL;
330 req->cr_event) == 0) {
337 if ((req->cr_attr = malloc(nattrs * sizeof (kcpc_attr_t)))
339 free(req);
344 req->cr_attr[i].ka_val = attrs[i].ca_val;
345 (void) strncpy(req->cr_attr[i].ka_name,
349 req->cr_attr = NULL;
351 req->cr_next = set->cs_request;
352 set->cs_request = req;
370 free(req);
374 return (req->cr_index);
377 free(req);
851 * Need to reconstruct a temporary cpc_attr_t array for req.