>         /*
 >          * Hold the given instance to prevent it from being detached.
 >          * This will also attach the instance if it is not currently 
 > attached.
 >          * Currently we ensure that mac_register() (called by the driver's
 >          * attach entry point) and all code paths under it cannot possibly
 >          * call mac_open() because this would lead to a recursive attach
 >          * panic.
 >          */
 >         if ((dip = ddi_hold_devi_by_instance(major, ddi_instance, 0)) == 
 > NULL)
 >                 return (EINVAL);

As an aside: a lot of this code is changing with Clearview UV; you
probably should check the Clearview gate.

-- 
meem

Reply via email to