From: Sushant Sharma <sushant@cs.unm.edu>
To: linux-kernel@vger.kernel.org
Subject: modifying struct sk_buff
Date: Thu, 03 Jun 2004 19:03:08 -0600 [thread overview]
Message-ID: <40BFCA4C.2000904@cs.unm.edu> (raw)
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
next reply other threads:[~2004-06-04 0:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-04 1:03 Sushant Sharma [this message]
2004-06-04 12:36 ` modifying struct sk_buff Bart Trojanowski
2004-06-04 18:47 ` Sharma Sushant
2004-06-04 20:05 ` Bart Trojanowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40BFCA4C.2000904@cs.unm.edu \
--to=sushant@cs.unm.edu \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox