Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Sep 2008 16:18:09 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        vehemens <vehemens@verizon.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: cdefpriv usage (was: bsd versus linux device drivers)
Message-ID:  <20080914131809.GX39652@deviant.kiev.zoral.com.ua>
In-Reply-To: <200809132151.18008.vehemens@verizon.net>
References:  <200809080202.00664.vehemens@verizon.net> <20080911090449.GV39652@deviant.kiev.zoral.com.ua> <200809111013.34194.vehemens@verizon.net> <200809132151.18008.vehemens@verizon.net>

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

--QU0xYvH/CPhunj+E
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Sep 13, 2008 at 09:51:17PM -0700, vehemens wrote:
> On Thursday 11 September 2008 10:13:34 am vehemens wrote:
> ...
> > Looks like the ioctl get randomly fails with ENOENT.
>=20
> Turned out to be a bug in my code.
>=20
> > Something else is going on with mmap get which fails with EBADF almost =
all
> > of the time..
>=20
> Looking at the man page and code, it appears that cdevpriv has not been=
=20
> implemented for mmap.
Yes, d_mmap is mostly called from PF# context, where no associated
fp is available. This is fixable, but somewhat ugly.

>=20
> I'm still somewhat confused about what cdevpriv is supposed to do.  I was=
=20
> after per open private data association, and the code appears to only=20
> implement per thread open private data association.

It is "after per open".

--QU0xYvH/CPhunj+E
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

iEYEARECAAYFAkjNDxAACgkQC3+MBN1Mb4jdvACeNLG8ReakvA+5OJOJmkY1Xqlh
ckQAn3aC36i70MvXtC6yFAYt0H3MkE25
=sTOT
-----END PGP SIGNATURE-----

--QU0xYvH/CPhunj+E--



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