Need source to TCP/IP 'connect()'

Wilkinson, Alex alex.wilkinson at dsto.defence.gov.au
Mon Nov 29 18:54:37 PST 2004


   0n Mon, Nov 29, 2004 at 09:35:42PM -0500, Ken Smith wrote: 

   > When 'fishing' for stuff in the kernel source code I find the tags
   > files kind of useful.  In a kernel build directory (e.g. I usually
   > use src/sys/i386/compile/GENERIC on a 5.X machine, after config-ing
   > GENERIC) after doing a 'make depend' you can do 'make tags'.  It
   > will usually fail once it starts to process the modules because it
   > can't find 'gtags' but by then it's already built what is most useful.
   > 
   > Once the tags file is built in the kernel build directory you can
   > do something like:
   > 
   > 	vi -t connect
   > 
   > and it will start up vi with the cursor at the beginning of that
   > function.  It's not perfect (sometimes it can't find a function)
   > but for the most part it works OK.
   > 
   > In this case it found connect() in /usr/src/sys/kern/uipc_syscalls.c
   > (I was using a RELENG_5 source tree).

Ken,

This looks useful, however, even after a buildkernel all I have 
is a CVS dir in /usr/src/sys/i386/compile/.

Did u mean /usr/obj/usr/src/sys/GENERIC ?

When u say "config-ing", do u mean running config(8) manually ?

 -aW


More information about the freebsd-stable mailing list