Re: 2.6.x kernels - use of exported symbols/functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Shine Mohamed <shinemohamed_j@naturesoft.net>
wrote:
> All the network devices are strored in a linked list
> with the head node dev_base. 
> 
> dev_base is a global variable of type struct
> net_device *
> and should be accessed using a read/write lock,
> dev_base_lock.
> (If in uniprocessor machine lock doesn't matter).
> 
> Parsing through the list u can find the appropriate
> network
> device ( one way is identifying by the name such
> eth0,.. 
> in the name field).

  There is a dev_get_by_name() function which does
this.


=====
Regards,
Kiran Kumar Immidi

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux