lkml.org 
[lkml]   [1999]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: tool to browse thru kernel source code
"Raju K. V." <rajukv@wipinfo.soft.net> writes:
>hi,
>
>I know this might sound silly, but I want to know what tools can be used
>to browse thru the kernel source code under linux. Looking at the volume
>of the source code find and grep can become very annoying.

In addition to what has already been mentioned I also recommend "id-utils",
you can get id-utils-3.2d.tar.gz from ftp://alpha.gnu.org/gnu/
(earlier versions had some funny problems).

With id-utils you can do things like
cd /usr/src/linux/kernel
gid hard_reset
.../drivers/scsi/53c7,8xx.c:280:static void hard_reset (struct Scsi_Host *host);
.../drivers/scsi/53c7,8xx.c:1167: hard_reset (host);
.../drivers/scsi/53c7,8xx.c:6068: * Function : void hard_reset (struct Scsi_Host *host)
.../drivers/scsi/53c7,8xx.c:6073:hard_reset (struct Scsi_Host *host) {
.../drivers/scsi/53c7,8xx.c:6184: hard_reset (host);

(it ignores e.g. hhard_reset). It works nicely from inside emacs, I use
it all the time when I change a function and the callers must be fixed.
The emacs interface takes you to all the right places.

-Tor

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.024 / U:0.620 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site