hello #?,
I am currently trying to write a device driver for Solaris 2.5.1 and
higher.
I have some things i wish to do and i would like some
idea's/suggestions/...
on how to do it.
The driver i have to write (mydriver) will be using another driver
(origdriver).
I know i can link them using I_PLINK. Some parameters must be
configured in
origdriver so the traffic of mydriver ends up in the right place.
I create a new minor device have the user I_PLINK it to the origdriver.
The user must send some configuration message to mydriver, who then
knows what to
tell to origdriver. But this is not what i want to do.
I would like to have a mydriver instance fully configured when it is
opened. So I can use it
without user configuration. Can i create (multiple) permanent links to
the driver,
each with its own configuration ? how ?
for example :
/dev/mydriver0 with configuration A
/dev/mydriver1 with configuration B
( A bit like /dev/ttya is mapped to serial port 1 and ttyb is mapped to
serial port 2 )
Each with it's own or with a common interface to origdriver, i
don't care.
I presume this is possible, but i can't find how to do it...
thanx,
J.
--
________
/---------------------------------\ /--------------------\
| Johan Verrept \ / Alcatel Bell |
| Software Development Engineer \ / F.Welles Plein 1 |
| Internet Access \/ Antwerpen |
| Competence Center ALC/\TEL Belgium |
\-------------------------------------------------------------/