Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2012 15:39:16 +0200
From:      Ed Schouten <ed@80386.nl>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, freebsd-current@freebsd.org
Subject:   Re: ttydev_cdevsw has no d_purge
Message-ID:  <CAJOYFBA=XXorS9PQDKTAc%2B=9AaK9hpd1YyGAFbLcDOvT3BOm%2Bg@mail.gmail.com>
In-Reply-To: <201208090851.56972.hselasky@c2i.net>
References:  <20120801160323.GN2676@deviant.kiev.zoral.com.ua> <201208081941.17860.hselasky@c2i.net> <CAJOYFBBPBva6KUvX7dxgDRD_Y3uH=OkWx6MCAh4pUWdGXCi6dg@mail.gmail.com> <201208090851.56972.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Hans,

2012/8/9 Hans Petter Selasky <hselasky@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 <ed@80386.nl>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJOYFBA=XXorS9PQDKTAc%2B=9AaK9hpd1YyGAFbLcDOvT3BOm%2Bg>