Lines Matching refs:cp
52 fmd_case_t *cp;
58 cp = fmd_case_open(hdl, cl);
64 *uuidp = fmd_case_uuid(hdl, cp);
65 fmd_buf_write(hdl, cp, *uuidp, &ptr, sizeof (gmem_case_ptr_t));
67 return (cp);
71 gmem_case_redirect(fmd_hdl_t *hdl, fmd_case_t *cp, gmem_ptrsubtype_t newsubtype)
73 const char *uuid = fmd_case_uuid(hdl, cp);
76 fmd_buf_read(hdl, cp, uuid, &ptr, sizeof (gmem_case_ptr_t));
80 fmd_buf_write(hdl, cp, uuid, &ptr, sizeof (gmem_case_ptr_t));
84 gmem_case_fini(fmd_hdl_t *hdl, fmd_case_t *cp, int close)
86 const char *uuid = fmd_case_uuid(hdl, cp);
87 gmem_case_closer_t *cl = fmd_case_getspecific(hdl, cp);
95 if (fmd_buf_size(hdl, cp, uuid) != 0)
96 fmd_buf_destroy(hdl, cp, uuid);
98 fmd_case_setspecific(hdl, cp, NULL);
99 fmd_case_close(hdl, cp);
116 fmd_case_t *cp = NULL;
118 while ((cp = fmd_case_next(hdl, cp)) != NULL) {
119 const char *uuid = fmd_case_uuid(hdl, cp);
125 if ((sz = fmd_buf_size(hdl, cp, uuid)) == 0)
130 fmd_buf_read(hdl, cp, fmd_case_uuid(hdl, cp), &ptr,
139 cp, &ptr)) == NULL) {
147 fmd_case_setspecific(hdl, cp, cl);
157 gmem_case_restore(fmd_hdl_t *hdl, gmem_case_t *cc, fmd_case_t *cp, char *serdnm)
164 cc->cc_cp = cp;