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

[-- Attachment #1 --]
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.
> 
> Turned out to be a bug in my code.
> 
> > Something else is going on with mmap get which fails with EBADF almost all
> > of the time..
> 
> Looking at the man page and code, it appears that cdevpriv has not been 
> implemented for mmap.
Yes, d_mmap is mostly called from PF# context, where no associated
fp is available. This is fixable, but somewhat ugly.

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

It is "after per open".

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (FreeBSD)

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

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