Lines Matching refs:mux
2 * Copyright (c) 2003-2006, Maxime Henrion <mux@FreeBSD.org>
45 #include "mux.h"
148 struct mux *mux;
164 struct mux {
190 static int mux_init(struct mux *);
191 static void mux_lock(struct mux *);
192 static void mux_unlock(struct mux *);
194 static struct chan *chan_new(struct mux *);
195 static struct chan *chan_get(struct mux *, int);
196 static struct chan *chan_connect(struct mux *, int);
199 static int chan_insert(struct mux *, struct chan *);
209 static void sender_wakeup(struct mux *);
211 static int sender_waitforwork(struct mux *, int *);
212 static int sender_scan(struct mux *, int *);
288 mux_lock(struct mux *m)
297 mux_unlock(struct mux *m)
306 struct mux *
309 struct mux *m;
313 m = xmalloc(sizeof(struct mux));
343 mux_close(struct mux *m)
383 sender_wakeup(chan->mux);
399 chan_listen(struct mux *m)
426 chan_accept(struct mux *m, int id)
473 sender_wakeup(chan->mux);
505 sender_wakeup(chan->mux);
514 chan_connect(struct mux *m, int id)
543 chan_get(struct mux *m, int id)
584 chan_new(struct mux *m)
591 chan->mux = m;
620 chan_insert(struct mux *m, struct chan *chan)
644 mux_init(struct mux *m)
697 mux_shutdown(struct mux *m, const char *errmsg, int status)
758 sender_wakeup(struct mux *m)
780 struct mux *m;
787 m = (struct mux *)arg;
895 struct mux *m;
897 m = (struct mux *)arg;
902 sender_waitforwork(struct mux *m, int *what)
926 sender_scan(struct mux *m, int *what)
977 struct mux *m;
983 m = (struct mux *)arg;