Re: [osol-code] Problem about charactor device

2008-05-12 Thread Artem Kachitchkine
> anyway,is there a way to load the driver once ,and system will not > detach the diver? See the ddi-forceattach(9P) man page. However, you might not actually need this. What are you trying to achieve by keeping the driver attached? -Artem _

Re: [osol-code] Problem about charactor device

2008-05-12 Thread Paul Durrant
2008/5/9 Sean Sprague <[EMAIL PROTECTED]>: > > The fact that if a driver returns a fail on detach() then it will not be > unloaded strikes me as being nasty. The phrase "trojan horse" comes to > mind... Whilst I guess that it is not straightforward for the kernel to > "decide" when a manlfunctionin

Re: [osol-code] Problem about charactor device

2008-05-09 Thread James Carlson
Sean Sprague writes: > The fact that if a driver returns a fail on detach() then it will not be > unloaded strikes me as being nasty. The phrase "trojan horse" comes to > mind... Whilst I guess that it is not straightforward for the kernel to > "decide" when a manlfunctioning (or malevolent (or

Re: [osol-code] Problem about charactor device

2008-05-09 Thread Sean Sprague
Paul, > xulari wrote: > >> thanks for advice! >> anyway,is there a way to load the driver once ,and system will not >> detach the diver? >> >> > > Yes, write your driver to return failure from it's detach(9e) routine: > it's then no longer possible for the system to detach and

Re: [osol-code] Problem about charactor device

2008-05-09 Thread Paul Durrant
xulari wrote: > thanks for advice! > anyway,is there a way to load the driver once ,and system will not > detach the diver? > Yes, write your driver to return failure from it's detach(9e) routine: it's then no longer possible for the system to detach and unload your driver. (If you ev

Re: [osol-code] Problem about charactor device

2008-05-09 Thread xulari
thanks for advice! anyway,is there a way to load the driver once ,and system will not detach the diver? This message posted from opensolaris.org ___ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/ma

Re: [osol-code] Problem about charactor device driver...........please!

2008-05-08 Thread Paul Durrant
xulari wrote: > I wrote a driver xxx, I want it to be loaded when i start the computer > so i put xxx into /kernel/drv/sparcv9/xxx > but after i reboot the solaris10, i check the /var/adm/messages > i found just after driver "attach", it "detach" ... > then i > "add_drv xxx" failed , instructions "

[osol-code] Problem about charactor device driver...........please!

2008-05-07 Thread xulari
I wrote a driver xxx, I want it to be loaded when i start the computer so i put xxx into /kernel/drv/sparcv9/xxx but after i reboot the solaris10, i check the /var/adm/messages i found just after driver "attach", it "detach" ... then i "add_drv xxx" failed , instructions "Driver (xxx) is already in