Lines Matching defs:hd
200 ndr_handle_t *hd;
203 if ((hd = malloc(sizeof (ndr_handle_t))) == NULL)
215 bcopy(&id, &hd->nh_id, sizeof (ndr_hdid_t));
216 hd->nh_pipe = xa->pipe;
217 hd->nh_svc = xa->binding->service;
218 hd->nh_data = (void *)data;
219 hd->nh_data_free = NULL;
222 hd->nh_next = ndr_handle_list;
223 ndr_handle_list = hd;
226 return (&hd->nh_id);
236 ndr_handle_t *hd;
245 hd = *pphd;
247 if (bcmp(&hd->nh_id, id, sizeof (ndr_hdid_t)) == 0) {
248 if (hd->nh_svc == svc) {
249 *pphd = hd->nh_next;
250 free(hd);
270 ndr_handle_t *hd;
274 hd = ndr_handle_list;
276 while (hd) {
277 if (bcmp(&hd->nh_id, id, sizeof (ndr_hdid_t)) == 0) {
278 if (hd->nh_svc != svc)
281 return (hd);
284 hd = hd->nh_next;
297 ndr_handle_t *hd;
304 hd = *pphd;
306 if (hd->nh_pipe == pipe) {
307 *pphd = hd->nh_next;
309 if (hd->nh_data_free)
310 (*hd->nh_data_free)(hd->nh_data);
312 free(hd);