From owner-freebsd-current@FreeBSD.ORG Sun Sep 14 13:18:15 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CA9F11065675 for ; Sun, 14 Sep 2008 13:18:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 80C448FC08 for ; Sun, 14 Sep 2008 13:18:15 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1KerUS-0006uG-33; Sun, 14 Sep 2008 16:18:12 +0300 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m8EDI919072913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 14 Sep 2008 16:18:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m8EDI9tQ026589; Sun, 14 Sep 2008 16:18:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id m8EDI9tg026587; Sun, 14 Sep 2008 16:18:09 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 14 Sep 2008 16:18:09 +0300 From: Kostik Belousov To: vehemens Message-ID: <20080914131809.GX39652@deviant.kiev.zoral.com.ua> References: <200809080202.00664.vehemens@verizon.net> <20080911090449.GV39652@deviant.kiev.zoral.com.ua> <200809111013.34194.vehemens@verizon.net> <200809132151.18008.vehemens@verizon.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QU0xYvH/CPhunj+E" Content-Disposition: inline In-Reply-To: <200809132151.18008.vehemens@verizon.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1KerUS-0006uG-33 51836dc4691cc5779ff8f756b43f55c1 X-Terabit: YES Cc: freebsd-current@freebsd.org Subject: Re: cdefpriv usage (was: bsd versus linux device drivers) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Sep 2008 13:18:15 -0000 --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--