Date: Fri, 14 Aug 2009 16:03:49 -0400 From: Andrew Gallatin <gallatin@cs.duke.edu> To: Kostik Belousov <kostikbel@gmail.com> Cc: freebsd-current@freebsd.org, Robert Watson <rwatson@freebsd.org> Subject: Re: clone_cleanup() doesn't Message-ID: <4A85C325.6050400@cs.duke.edu> In-Reply-To: <20090814193254.GO1884@deviant.kiev.zoral.com.ua> References: <4A857D16.9070403@cs.duke.edu> <alpine.BSF.2.00.0908141737370.82989@fledge.watson.org> <4A85B9CD.4050802@cs.duke.edu> <20090814193254.GO1884@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A85C325.6050400>