* Can anyone plz explain me the fields
@ 2013-04-04 12:08 Tarun Batra
2013-04-04 17:26 ` michi1 at michaelblizek.twilightparadox.com
0 siblings, 1 reply; 2+ messages in thread
From: Tarun Batra @ 2013-04-04 12:08 UTC (permalink / raw)
To: kernelnewbies
Can anyone plz explain me the fields
skb = kmem_cache_alloc(skbuff_head_cache, gfp_mask & ~_ _GFP_DMA);
... ... ...
size = SKB_DATA_ALIGN(size);
data = kmalloc(size + sizeof(struct skb_shared_info), gfp_mask);
It is the simplified version of skb_alloc().
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130404/2885e3a6/attachment.html
^ permalink raw reply [flat|nested] 2+ messages in thread* Can anyone plz explain me the fields
2013-04-04 12:08 Can anyone plz explain me the fields Tarun Batra
@ 2013-04-04 17:26 ` michi1 at michaelblizek.twilightparadox.com
0 siblings, 0 replies; 2+ messages in thread
From: michi1 at michaelblizek.twilightparadox.com @ 2013-04-04 17:26 UTC (permalink / raw)
To: kernelnewbies
Hi!
On 17:38 Thu 04 Apr , Tarun Batra wrote:
> Can anyone plz explain me the fields
>
>
> skb = kmem_cache_alloc(skbuff_head_cache, gfp_mask & ~_ _GFP_DMA);
> ... ... ...
> size = SKB_DATA_ALIGN(size);
size of data buffer (the bytes you send over the wire not the overhead of
everything you need in ram to process the packets)
> data = kmalloc(size + sizeof(struct skb_shared_info), gfp_mask);
data is the actual buffer (+skb_shared_info at the end of it)
-Michi
--
programing a layer 3+4 network protocol for mesh networks
see http://michaelblizek.twilightparadox.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-04 17:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04 12:08 Can anyone plz explain me the fields Tarun Batra
2013-04-04 17:26 ` michi1 at michaelblizek.twilightparadox.com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).