Lines Matching defs:f
51 fifo_t *f;
53 f = xcalloc(sizeof (fifo_t));
55 return (f);
60 fifo_add(fifo_t *f, void *data)
67 if (f->f_tail == NULL)
68 f->f_head = f->f_tail = fn;
70 f->f_tail->fn_next = fn;
71 f->f_tail = fn;
77 fifo_remove(fifo_t *f)
82 if ((fn = f->f_head) == NULL)
86 if ((f->f_head = fn->fn_next) == NULL)
87 f->f_tail = NULL;
103 fifo_free(fifo_t *f, void (*freefn)(void *))
105 fifonode_t *fn = f->f_head;
119 free(f);
123 fifo_len(fifo_t *f)
128 for (i = 0, fn = f->f_head; fn; fn = fn->fn_next, i++);
134 fifo_empty(fifo_t *f)
136 return (f->f_head == NULL);
140 fifo_iter(fifo_t *f, int (*iter)(void *data, void *arg), void *arg)
146 for (fn = f->f_head; fn; fn = fn->fn_next) {