2012-01-03 47 views
1

我想知道如何在dst_entry結構中打印內容,該內容使用skb_dst_set函數設置,並在Linux Kernel 2.6.35中使用skb_dst(dst)檢索。如何在Linux內核中打印dst_entry的內容

任何人都可以請讓我知道。

+0

順便說一句,printk是一種方式。 – 2012-01-03 17:32:26

+0

結構內部定義如下:http://lxr.free-electrons.com/source/include/net/dst.h#L32 – 2012-02-13 05:56:18

回答

1

與所有其他內核數據結構一樣,struct dst_entry也與許多其他內部結構組合在一起。所以,如果你對你想要打印的東西有特別的要求,我可以幫助你。你可以在include/net/dst.h中找到struct dst_entry的定義。閱讀定義將幫助你。