[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ethernet driver : how to allocate space for net_device struct
hi all,
in my ethernet driveres intialization function, how shud
i allocate space for the net_device structure???
i have seen in 8139too.c a call to "alloc_etherdev(dev)".
is this the preffered way to allocate space for the net_device
struct. In rubini's book he has mentioned the use of
"ether_setup" (there is no mention of "alloc_etherdev")
to partially fill up the net_device struct, but this fxn
is not used in some real world drivers like the driver for
realtek card (8139too.c). where can i get info on what
functions like "alloc_etherdev" do???
TIA
- /dev/mandeep
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/