Subject: Re: audio open()/close() inconsistency
To: Aymeric Vincent <vincent@labri.fr>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 09/16/2007 18:52:14
--ksWToxiNtiI9VBk+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Sep 16, 2007 at 06:36:58PM +0200, Aymeric Vincent wrote:
> Quentin Garnier <cube@cubidou.net> writes:
>=20
> > While I don't deny there might be a bug, your analysis is incorrect:
> > the close() function from the cdevsw structure is called only once, when
> > there is no remaining file descriptor using the device.
>=20
> Ah, you're right. Even if the device is opened once on /dev/audio0 and
> once on /dev/sound0?

Not in that case (dev_t is different), indeed.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.

--ksWToxiNtiI9VBk+
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (NetBSD)

iQEVAwUBRu1fPtgoQloHrPnoAQKXMgf/Yq3IbtjxpczhjVY7IwQwwSYWS9gWpOm2
eJSvV7CECatNSR6eL+uuIK8n7p8woRT9npj0PtJzHu3Lyew+AgoKGdAqxwqq/IAW
Zq8Tilt3YVWGaG5h6NpTcqoaKVNdA1op2vinB52FtRxarqnCbWXwN2kPNn+JbQPF
wjf/DZJAmSLYV8Vurv7LMojvE3pi4lDGKSFl1MTLN+LfnTDLpXbvFZxsaEfiWAc6
SNgLPKhQXtaOyij36/pccQaWLhXz7ZaC8FmODGMPKy/MEkP/oxh30ToKaeuy05JL
YJSEnBMWltfJUrZ5n03d5eK7A50PRueoJ4UuIHVfS9EYKB9dycCW3w==
=uWWZ
-----END PGP SIGNATURE-----

--ksWToxiNtiI9VBk+--