* Kostik Belousov <[email protected]> wrote:
> Note that struct devfs_dirent is available as vp->v_data, and
> devfs_dirent' de_cdp member contains pointer to cdev_priv. I think this
> would allow to remove s_ttydp.

Well, there are lots of fields that could be derived. We could even
remove s_ttyp and only use the vnode, because cdp_c.si_drv1 contains a
pointer to the TTY.

The reason why I didn't choose that approach, was because I'm a bit
afraid we get these insanely long chains of pointer dereferences, of
which I'm not entirely sure we do the locking properly. Even right now
I'm not sure whether we pick up proctree_lock enough. s_ttydp isn't too
strict about any form of locking, because its value is only used
comparatively.

-- 
 Ed Schouten <[email protected]>
 WWW: http://80386.nl/

Attachment: pgp1nW8msCsA9.pgp
Description: PGP signature

Reply via email to