where is the sk_buff allocation
Olof Johansson
olof at lixom.net
Mon Apr 23 13:02:04 EST 2007
On Sun, Apr 22, 2007 at 06:14:18PM +0000, Ming Liu wrote:
> Dear all,
> I am reading and understanding the Xilinx Temac device driver. I know that
> hard_start_xmit() is used to transmit the packets. In this function, a
> pointer skb which points to a sk_buff needs to be passed to show the
> location of the socket buffer. But where is that sk_buff allocation
> sentence, and how its address (skb) is passed to the hard_start_xmit()
> function? I want to change the address of the sk_buff in my system and try
> to fit this socket buffer in a pre-defined location.
The sk_buff is allocated by the network stack and passed down to the
driver. If you need the buffer to be located in a specific location
before transmitting it, then you'll have to copy it there by hand.
-Olof
More information about the Linuxppc-embedded
mailing list