From owner-freebsd-current@FreeBSD.ORG Fri Aug 14 20:03:57 2009 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 71E51106568D; Fri, 14 Aug 2009 20:03:57 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id 33CBE8FC4B; Fri, 14 Aug 2009 20:03:57 +0000 (UTC) Received: from [172.31.193.10] (cpe-069-134-110-200.nc.res.rr.com [69.134.110.200]) (authenticated bits=0) by duke.cs.duke.edu (8.14.2/8.14.2) with ESMTP id n7EK3uad019013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Aug 2009 16:03:56 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu n7EK3uad019013 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1250280236; bh=VdZHlhE/hOLb4Z6wAv3y7mu8XCI1xI8HVjeiLA8iuz4=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=dVctKxBf/+Lsm0E5d5sQWEDJAXBUyNGIzscV2+wpx3XFOkI6nqj1SvuuMfiqhigPU hlxor55pRtRs/H9Zy+tnZbLNpDO8SDFGqc9ughKQtT95+rKVUnQh+haTBRNUd889Un cJPQiAzOYEaA4SaKfjRtVSCaTufCtcLGiUf/EinM= Message-ID: <4A85C325.6050400@cs.duke.edu> Date: Fri, 14 Aug 2009 16:03:49 -0400 From: Andrew Gallatin User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: Kostik Belousov References: <4A857D16.9070403@cs.duke.edu> <4A85B9CD.4050802@cs.duke.edu> <20090814193254.GO1884@deviant.kiev.zoral.com.ua> In-Reply-To: <20090814193254.GO1884@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org, Robert Watson Subject: Re: clone_cleanup() doesn't 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: Fri, 14 Aug 2009 20:03:57 -0000 Kostik Belousov wrote: > This is exactly what you get with cdevpriv. You open a single device > node, and driver attaches a private data to the file descriptor. Ah, so it is. I missed the per-process note in the manpage. I wish we'd have had this back in 5.x, rather than this cloning stuff. Unfortunately, since I have to support those releases, I'm stuck with cloning. FWIW, the fix to my problem was to add D_NEEDMINOR to my cdevsw d_flags, to restore the same behavior as FreeBSD 5/6/7 Drew