Re: net_bh() in 2.4 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > I am trying to understand exactly what happens to a received 
> > packet after device driver creates an sk_buff and passes it 
> > to netif_rx().
>
> Read net/* source code, where netif_rx is defined...
> Trace the code path...

I highly recommend a good source browser. If you have 10 mins,
download cscope from cscope.sourceforge.net. It only takes
a few mins to get familiar with it. Will be well worth the
time invested.

For example:

- download the source and unpack the cscope binary.

- create a files list for your source tree: eg:
	phaedrus:[/usr/src/cscopes]> find /usr/src/linux/ -name "*.[chys]" \
	-print > 244.files

- build the cscope:
	phaedrus:[/usr/src/cscopes]> cscope -b -i 244.files -f 244.out

- write a small script that invokes it when you want to use it:
        phaedrus:[/]> cat 244sc
	#! /bin/sh
        cd /usr/src/cscopes
        cscope -d -f 244.out

It will put you in a simple ui:


	Find this C symbol:
	Find this global definition:
	Find functions called by this function:
	Find functions calling this function:
	Find this text string:
	Change this text string:
	Find this egrep pattern:
	Find this file:
	Find files #including this file:

Of course, read the docs!!
My knowledge is pretty old, and I'm sure there are other new
features now, and of course, possibly other better browsers out there.

Hope that helps..


thanks,
Nivedita

---
Nivedita Singhvi                        (503) 578-4580
Linux Technology Center                 nivedita@us.ibm.com
IBM Beaverton, OR                       nivedita@sequent.com

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux