From mboxrd@z Thu Jan 1 00:00:00 1970 From: michi1@michaelblizek.twilightparadox.com (michi1 at michaelblizek.twilightparadox.com) Date: Thu, 4 Apr 2013 19:26:42 +0200 Subject: Can anyone plz explain me the fields In-Reply-To: References: Message-ID: <20130404172642.GC2256@grml> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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