Hello,
as I understood 'dev_base' points to the beginning of 'net_device'
structure, not to the beginning of block allocated by alloc_netdev(). So
'net_device' introduces a field named 'padded', which is used to get the
start address of the whole memory block.
What I don't understand is:
1) how come that this structure needs any padding
2) where is this padding physically done - at the head of structure or on
the end?
Thank you.
---
Best regards, Roman Mashak
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/