Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Jan 2007 06:33:18 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        John Baldwin <jhb@freebsd.org>
Cc:        Ed Schouten <ed@fxq.nl>, freebsd-arch@freebsd.org
Subject:   Re: Request for PTY/devfs changes 
Message-ID:  <25837.1168324398@critter.freebsd.dk>
In-Reply-To: Your message of "Mon, 08 Jan 2007 17:50:58 EST." <200701081750.59131.jhb@freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <200701081750.59131.jhb@freebsd.org>, John Baldwin writes:
>On Monday 08 January 2007 14:29, Poul-Henning Kamp wrote:

>Unfortunately the pty uses 'make_dev_cred' with a specific credential and that 
>credential reference is what is not getting released.

devfs needs to learn about that cred if the cdev is marked cheap.

>> In that case the cdev gets recycled quite fast if unreferenced.
>
>How does devfs know to recycle the cdev?  And will it recycle cdev's after 
>they are closed?

via the normal vnode cleaup.


-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?25837.1168324398>