hdp 193 kern/kern_subr.c struct hook_desc *hdp; hdp 195 kern/kern_subr.c hdp = (struct hook_desc *)malloc(sizeof (*hdp), M_DEVBUF, M_NOWAIT); hdp 196 kern/kern_subr.c if (hdp == NULL) hdp 199 kern/kern_subr.c hdp->hd_fn = fn; hdp 200 kern/kern_subr.c hdp->hd_arg = arg; hdp 202 kern/kern_subr.c TAILQ_INSERT_TAIL(head, hdp, hd_list); hdp 204 kern/kern_subr.c TAILQ_INSERT_HEAD(head, hdp, hd_list); hdp 206 kern/kern_subr.c return (hdp); hdp 212 kern/kern_subr.c struct hook_desc *hdp; hdp 215 kern/kern_subr.c for (hdp = TAILQ_FIRST(head); hdp != NULL; hdp 216 kern/kern_subr.c hdp = TAILQ_NEXT(hdp, hd_list)) hdp 217 kern/kern_subr.c if (hdp == vhook) hdp 219 kern/kern_subr.c if (hdp == NULL) hdp 222 kern/kern_subr.c hdp = vhook; hdp 223 kern/kern_subr.c TAILQ_REMOVE(head, hdp, hd_list); hdp 224 kern/kern_subr.c free(hdp, M_DEVBUF); hdp 236 kern/kern_subr.c struct hook_desc *hdp; hdp 239 kern/kern_subr.c TAILQ_FOREACH(hdp, head, hd_list) { hdp 240 kern/kern_subr.c (*hdp->hd_fn)(hdp->hd_arg); hdp 243 kern/kern_subr.c while ((hdp = TAILQ_FIRST(head)) != NULL) { hdp 244 kern/kern_subr.c TAILQ_REMOVE(head, hdp, hd_list); hdp 245 kern/kern_subr.c (*hdp->hd_fn)(hdp->hd_arg); hdp 247 kern/kern_subr.c free(hdp, M_DEVBUF);