clone_cleanup() doesn't
Andrew Gallatin
gallatin at cs.duke.edu
Fri Aug 14 20:03:57 UTC 2009
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
More information about the freebsd-current
mailing list