Clone devices

Mike Shaver (shaver@neon.ingenia.ca)
Sun, 10 Aug 1997 21:16:03 -0400 (EDT)


How does one implement SVR4-style clone devices in Linux?

I'm trying to emulate a driver that uses /dev/fooclone to get a new
`instance' of /dev/foo, and I want to be able to set the minor number
in the file returned by my open() routine to correspond to the
/dev/foo instance I'm allocating to the process.

Something analogous to /dev/ptmx in SVR4...

Any ideas? I couldn't find any examples of this in the existing
drivers, but that could be my fault.

Mike

-- 
#> Mike Shaver (shaver@ingenia.com) Ingenia Communications Corporation 
#>      Chief System Architect -- will tame sendmail(8) for food       
#>                                                                     
#> "You are a very perverse individual, and I think I'd like to get to 
#>  know you better." --- eric@reference.com