Subject: clone devices
To: None <tech-kern@netbsd.org>
From: Michael B. Schmitz <mbs@seqiro.com>
List: tech-kern
Date: 08/16/2001 13:38:33
I'm porting a character driver to NetBSD which is designed for
"clone open".  Under Solaris, this means that the driver's
ioctl entry point takes a pointer to a dev_t, not a dev_t.  The
driver is free to change the minor number of the dev_t.  The
user-level caller eventually gets back a VCHR vnode with the
dev_t assigned by the driver.  On subsequent operations, the
driver sees the minor number it assigned, thus allowing for
the establishment of "channels" to user processes.

What's the best way to handle this under NetBSD?

Thanks,

Michael Schmitz
mbs@seqiro.com