Hi Hans,

2012/8/9 Hans Petter Selasky <hsela...@c2i.net>:
> 1) Use unrhdr. Suggested by ed.

Thanks!

> 2) Implement tty_set_softc() and use that when dereffing ucom unit numbers.

We're getting there. Now that I think of it, if we want to go in this
direction, we might as well do the following:

- Simply call tty_alloc() -- not tty_alloc_mutex(). I'd rather get rid
of this functionality altogether, if possible.
- Use the TTY mutex to lock down the state of the ucom driver, e.g.
#define ucom_lock(sc) tty_lock(sc->sc_mtx).

Any thoughts?

-- 
Ed Schouten <e...@80386.nl>
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to