Okay, did that and this is what the code looks like now:
http://rafb.net/p/0Ufk6F18.html

Same problem trying to use add_drv, as seen from the error:

devfsadm: driver failed to attach: testdriver
Warning: Driver (testdriver) successfully added to system but failed to
attach

I'm at a loss here, the documentation seems to agree with what I'm doing :(


On 9/11/07, Artem Kachitchkine <[EMAIL PROTECTED]> wrote:
>
>
> Daniel Corbe wrote:
> > Paul,
> > Good advice; however, it's an issue I'd like to address at a later time
> with
> > the driver.  Simply returning DDI_SUCCESS still causes the machine to
> > reboot, and this seems like an issue in itself.
>
> You cannot not implement getinfo *and* return DDI_SUCCESS. Try replacing
> your dev_ops entry from testdriver_getinfo to ddi_getinfo_1to1 and see
> if it makes any difference.
>
> -Artem
>
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to