Re: clone_cleanup() doesn't

From: Andrew Gallatin <gallatin_at_cs.duke.edu>
Date: Fri, 14 Aug 2009 16:03:49 -0400
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
Received on Fri Aug 14 2009 - 18:03:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:53 UTC