On Monday 10 May 2004 16.39, Micha Feigin wrote: > On Mon, May 10, 2004 at 11:27:49AM -0000, bunty wrote: > > hi, > > In skbuff discussion i placed question about where exactly > > kernel allocates space for data and all headers. at that time i got very > > goos respone but still i unable to locate it. what i want to know where > > kernel allocates space for whole packet? Is there any call to alloc_skb > > in kernel source dir that does it? if not how kernel knows packet size so > > that he can create outgoing packet? > > You can find all calls to alloc_skb by going to the top of your kernel > tree and doing > > grep -rsn alloc_skb . > I'd advise to use cscope for kernel analysis cause it saves me a lot of time in such cases (I use KScope, by the way :)) Bye Gabor -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/