Thread (1 message) 1 message, 1 author, 2011-12-19

Re: [PATCH 02/14] mac802154: allocation of ieee802154 device

From: David Miller <hidden>
Date: 2011-12-19 19:34:04

From: Alexander Smirnov <redacted>
Date: Mon, 19 Dec 2011 19:33:42 +0300
+	phy = wpan_phy_alloc(ALIGN(sizeof(*priv), NETDEV_ALIGN) + priv_size);
WHy make the call sites have to be cognizant of all of these crazy
alignment calculations?

Make wpan_phy_alloc() take care of it, and just pass the minimum amount of
information necessary for it to calculate the right size.

------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help