Neelam wrote:
> Hi,
>
> Is there a magic function in the kernel to get the dev_info_t structure, 
> given the name of the network interface? I came across get_dev_by_name(). But 
> not quite sure if this is the correct function, plus it's returns a void*!!
>   

I'm not aware of any such.

You can look, and hopefully the network interface is registered such 
that its name/PPA is the same as the driver name and instance.  You'd 
have to lock the devinfo tree, and then search for it starting from the 
root (/) node in the tree.  (Look for nodes with a DDI_NT_NET minor, 
whose driver name and instance number match what you're looking for.)

    -- Garrett
> Thanks,
> Neelam
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> opensolaris-code mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
>
>   

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to