Lines Matching defs:hd
198 ndr_handle_t *hd;
201 if ((hd = malloc(sizeof (ndr_handle_t))) == NULL)
213 bcopy(&id, &hd->nh_id, sizeof (ndr_hdid_t));
214 hd->nh_fid = xa->fid;
215 hd->nh_svc = xa->binding->service;
216 hd->nh_data = (void *)data;
217 hd->nh_data_free = NULL;
220 hd->nh_next = ndr_handle_list;
221 ndr_handle_list = hd;
224 return (&hd->nh_id);
234 ndr_handle_t *hd;
243 hd = *pphd;
245 if (bcmp(&hd->nh_id, id, sizeof (ndr_hdid_t)) == 0) {
246 if (hd->nh_svc == svc) {
247 *pphd = hd->nh_next;
248 free(hd);
268 ndr_handle_t *hd;
272 hd = ndr_handle_list;
274 while (hd) {
275 if (bcmp(&hd->nh_id, id, sizeof (ndr_hdid_t)) == 0) {
276 if (hd->nh_svc != svc)
279 return (hd);
282 hd = hd->nh_next;
295 ndr_handle_t *hd;
302 hd = *pphd;
304 if (hd->nh_fid == fid) {
305 *pphd = hd->nh_next;
307 if (hd->nh_data_free)
308 (*hd->nh_data_free)(hd->nh_data);
310 free(hd);