Struct sk_buff_head

Kamil Konieczny k.konieczny at partner.samsung.com
Fri Jun 16 03:13:55 EDT 2017


Hi,

On 06/07/2017 09:36 PM, wiktoria.lewicka wrote:
> I read code from file include/linux/skbuff.h and I have question about sk_buff_head structure. 
> [...]
> Is this union replace sk_buff_head structure? 
> I didn`t found any field in sk_buff, which may use sk_buff_head, [...]

As I can see it, sk_buff can be on double-linked list,
and then it is linked by next and prev,
or it is referenced by red-black tree, rb_node,
depending of some network logic (packet type ?)

Both are used by functions operating on structures.

-- 
Best regards,
Kamil Konieczny
Samsung R&D Institute Poland




More information about the Kernelnewbies mailing list