Can anyone plz explain me the fields
    michi1 at michaelblizek.twilightparadox.com 
    michi1 at michaelblizek.twilightparadox.com
       
    Thu Apr  4 13:26:42 EDT 2013
    
    
  
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
    
    
More information about the Kernelnewbies
mailing list