Skip to contentSkip to conversation

when is alloc_skb called

DISCUSSION Sushant Sharma 3 participants 3 messages Jun 7, 2004 – Jun 27, 2004

lore
Share & tools
lore
#0 lore raw

Hi All

I want to know which are the evnets
that can lead to the calling of alloc_skb function which is used to allocate sk_buff. Arrival and departure of packet are 2 events which I know. Are there any other events/cases which can lead to alloc_skb(...) function call in kernel.

Thanks for help
Sushant

#1 lore raw
Quoted 8 lines · Sushant Sharma

Hi All

I want to know which are the evnets
that can lead to the calling of alloc_skb function which is used to allocate sk_buff. Arrival and departure of packet are 2 events which I know. Are there any other events/cases which can lead to alloc_skb(...) function call in kernel.

Some non-network related drivers use skb's for non-network related things (ieee1394 is one such abuser).

Signature · 4 lines
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/
#2 lore raw
Quoted 12 lines · Ben Collins
Quoted 8 lines · Sushant Sharma

Hi All

I want to know which are the evnets
that can lead to the calling of alloc_skb function which is used to allocate sk_buff. Arrival and departure of packet are 2 events which I know. Are there any other events/cases which can lead to alloc_skb(...) function call in kernel.

Quoted 3 lines

Some non-network related drivers use skb's for non-network related things (ieee1394 is one such abuser).

And some network protocol stacks use it to report events, like
connection requests, etc see the x25 code, for instance (x25_establish_link, x25_terminate_link), sometimes allocating 1 byte, sometimes using the skb->cb scratch area.

- Arnaldo