Lines Matching refs:lq

249 free_logging_data(logging_data *lq)  in free_logging_data()  argument
251 if (lq != NULL) { in free_logging_data()
252 free(lq->ld_host); in free_logging_data()
253 free(lq->ld_netid); in free_logging_data()
255 if (lq->ld_nb != NULL) { in free_logging_data()
256 free(lq->ld_nb->buf); in free_logging_data()
257 free(lq->ld_nb); in free_logging_data()
260 free(lq->ld_path); in free_logging_data()
261 free(lq->ld_rpath); in free_logging_data()
263 free(lq); in free_logging_data()
270 logging_data *lq; in remove_head_of_queue() local
275 lq = logging_head; in remove_head_of_queue()
276 if (lq) { in remove_head_of_queue()
277 logging_head = lq->ld_next; in remove_head_of_queue()
287 return (lq); in remove_head_of_queue()
291 do_logging_queue(logging_data *lq) in do_logging_queue() argument
296 while (lq) { in do_logging_queue()
299 if (lq->ld_host == NULL) { in do_logging_queue()
301 cln_init_lazy(&cln, lq->ld_netid, lq->ld_nb); in do_logging_queue()
304 host = lq->ld_host; in do_logging_queue()
306 audit_mountd_mount(host, lq->ld_path, lq->ld_status); /* BSM */ in do_logging_queue()
309 if (lq->ld_rpath) in do_logging_queue()
310 mntlist_new(host, lq->ld_rpath); in do_logging_queue()
312 if (lq->ld_host == NULL) in do_logging_queue()
315 free_logging_data(lq); in do_logging_queue()
319 lq = remove_head_of_queue(); in do_logging_queue()
329 logging_data *lq; in logging_svc() local
338 lq = remove_head_of_queue(); in logging_svc()
341 do_logging_queue(lq); in logging_svc()
989 logging_data *lq; in enqueue_logging_data() local
992 lq = (logging_data *)calloc(1, sizeof (logging_data)); in enqueue_logging_data()
993 if (lq == NULL) in enqueue_logging_data()
1001 lq->ld_host = strdup(host); in enqueue_logging_data()
1002 if (lq->ld_host == NULL) in enqueue_logging_data()
1007 lq->ld_netid = strdup(transp->xp_netid); in enqueue_logging_data()
1008 if (lq->ld_netid == NULL) in enqueue_logging_data()
1011 lq->ld_nb = calloc(1, sizeof (struct netbuf)); in enqueue_logging_data()
1012 if (lq->ld_nb == NULL) in enqueue_logging_data()
1023 lq->ld_nb->maxlen = nb->maxlen; in enqueue_logging_data()
1024 lq->ld_nb->len = nb->len; in enqueue_logging_data()
1026 lq->ld_nb->buf = malloc(lq->ld_nb->len); in enqueue_logging_data()
1027 if (lq->ld_nb->buf == NULL) in enqueue_logging_data()
1030 bcopy(nb->buf, lq->ld_nb->buf, lq->ld_nb->len); in enqueue_logging_data()
1033 lq->ld_path = strdup(path); in enqueue_logging_data()
1034 if (lq->ld_path == NULL) in enqueue_logging_data()
1038 lq->ld_rpath = strdup(rpath); in enqueue_logging_data()
1039 if (lq->ld_rpath == NULL) in enqueue_logging_data()
1043 lq->ld_status = status; in enqueue_logging_data()
1050 logging_tail = logging_head = lq; in enqueue_logging_data()
1052 logging_tail->ld_next = lq; in enqueue_logging_data()
1053 logging_tail = lq; in enqueue_logging_data()
1062 free_logging_data(lq); in enqueue_logging_data()