'net_device' padding

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

 



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/


[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