Right now my latest problem is *this* code from softmac_hold():

   /*
    * First try to hold this device instance to force the MAC
    * to be registered.
    */
   if ((dip = ddi_hold_devi_by_instance(getmajor(dev), ppa, 0)) == NULL)
       return (ENOENT);

Basically, the assumption here is that PPA == instance.  Bad assumption.
The assumption is based on the code in mac_register() that the minor number is (instance + 1). Have you changed this code?

What I'm trying to figure out at present is how I can get the device instance from the dev_t, or alternatively, how I can pass the instance number to softmac_hold().
I'd appreciate any thoughts you have on this matter.
This is a GLDv3 driver, right? can you use the dls_link_devinfo() to get the devinfo from the dev_t?

Thanks
- Cathy

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to