Lines Matching refs:hndl
75 static tnfctl_errcode_t alloc_probe_space(tnfctl_handle_t *hndl, int maxprobe);
349 _tnfctl_prbk_flush(tnfctl_handle_t *hndl, prbctlref_t *p) in _tnfctl_prbk_flush() argument
356 if (ioctl(hndl->kfd, TIFIOCSPROBEVALS, &probebuf) < 0) in _tnfctl_prbk_flush()
365 _tnfctl_refresh_kernel(tnfctl_handle_t *hndl) in _tnfctl_refresh_kernel() argument
374 prexstat = prbk_get_buf_attrs(hndl); in _tnfctl_refresh_kernel()
382 if (ioctl(hndl->kfd, TIFIOCGMAXPROBE, &maxprobe) < 0) in _tnfctl_refresh_kernel()
384 if (maxprobe == hndl->num_probes) { in _tnfctl_refresh_kernel()
389 prexstat = alloc_probe_space(hndl, maxprobe); in _tnfctl_refresh_kernel()
394 obj_p = hndl->objlist; in _tnfctl_refresh_kernel()
415 if (ioctl(hndl->kfd, TIFIOCGPROBEVALS, &probebuf) < 0) { in _tnfctl_refresh_kernel()
449 if (ioctl(hndl->kfd, TIFIOCGPROBESTRING, in _tnfctl_refresh_kernel()
452 if (hndl->create_func) { in _tnfctl_refresh_kernel()
454 hndl->create_func(hndl, in _tnfctl_refresh_kernel()
460 hndl->num_probes = maxprobe; in _tnfctl_refresh_kernel()
469 alloc_probe_space(tnfctl_handle_t *hndl, int maxprobe) in alloc_probe_space() argument
478 obj_p = hndl->objlist; in alloc_probe_space()
482 o_pp = &(hndl->objlist); in alloc_probe_space()
528 probe_p->probe_handle->next = hndl->probe_handle_list_head; in alloc_probe_space()
529 hndl->probe_handle_list_head = probe_p->probe_handle; in alloc_probe_space()
534 hndl->num_probes = maxprobe; in alloc_probe_space()