mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* when is alloc_skb called
@ 2004-06-07 21:29 Sushant Sharma
  2004-06-07 22:57 ` Ben Collins
  0 siblings, 1 reply; 3+ messages in thread
From: Sushant Sharma @ 2004-06-07 21:29 UTC (permalink / raw)
  To: linux-kernel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: when is alloc_skb called
  2004-06-07 21:29 when is alloc_skb called Sushant Sharma
@ 2004-06-07 22:57 ` Ben Collins
  2004-06-26  5:16   ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Collins @ 2004-06-07 22:57 UTC (permalink / raw)
  To: Sushant Sharma; +Cc: linux-kernel

On Mon, Jun 07, 2004 at 03:29:14PM -0600, Sushant Sharma wrote:
> 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).

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: when is alloc_skb called
  2004-06-07 22:57 ` Ben Collins
@ 2004-06-26  5:16   ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2004-06-26  5:16 UTC (permalink / raw)
  To: Ben Collins; +Cc: Sushant Sharma, linux-kernel

Ben Collins wrote:
> On Mon, Jun 07, 2004 at 03:29:14PM -0600, Sushant Sharma wrote:
> 
>>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).
> 

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-27  4:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-07 21:29 when is alloc_skb called Sushant Sharma
2004-06-07 22:57 ` Ben Collins
2004-06-26  5:16   ` Arnaldo Carvalho de Melo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®