public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* modifying struct sk_buff
@ 2004-06-04  1:03 Sushant Sharma
  2004-06-04 12:36 ` Bart Trojanowski
  0 siblings, 1 reply; 4+ messages in thread
From: Sushant Sharma @ 2004-06-04  1:03 UTC (permalink / raw)
  To: linux-kernel

Hi
I want to add a new member (say uint32_t) in the
struct sk_buff{...}
in the file include/linux/skbuff.h.

If i add this new member and I want to assign it
some value when ever function
struct sk_buff *alloc_skb(unsigned int *size,* int gfp_mask)
in file
net/core/skbuff.c
is called
Do I need to allocate memory for this member
(  ie add sizeof(_new-member_) to *size* while doing kmalloc()  )
or I should not worry abt that and I can assign some value
to this _new-member_ every time this function is called.

Thanks
Sushant


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-06-04 20:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-04  1:03 modifying struct sk_buff Sushant Sharma
2004-06-04 12:36 ` Bart Trojanowski
2004-06-04 18:47   ` Sharma Sushant
2004-06-04 20:05     ` Bart Trojanowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox