From owner-freebsd-current@FreeBSD.ORG Sun Sep 14 04:45:52 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 023411065675 for ; Sun, 14 Sep 2008 04:45:52 +0000 (UTC) (envelope-from vehemens@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.freebsd.org (Postfix) with ESMTP id DE00D8FC0A for ; Sun, 14 Sep 2008 04:45:51 +0000 (UTC) (envelope-from vehemens@verizon.net) Received: from sam ([71.106.230.165]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K76008L858FKBJ4@vms044.mailsrvcs.net> for freebsd-current@freebsd.org; Sat, 13 Sep 2008 23:45:51 -0500 (CDT) Date: Sat, 13 Sep 2008 21:51:17 -0700 From: vehemens In-reply-to: <200809111013.34194.vehemens@verizon.net> To: freebsd-current@freebsd.org Message-id: <200809132151.18008.vehemens@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <200809080202.00664.vehemens@verizon.net> <20080911090449.GV39652@deviant.kiev.zoral.com.ua> <200809111013.34194.vehemens@verizon.net> User-Agent: KMail/1.9.10 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 04:45:52 -0000 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. 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.