> 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
_
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
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
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
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
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
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 "
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