Re: Non-web based LXR

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

 



If you use vim or emacs  then cscope is very useful for spelunking the sources.

At the top level of your kernel source tree use the cscope target under make

    make cscope

Vim from 7 ish onwards is compiled with +cscope so it automatically recognizes
cscope.out files.

Within vim you can use the default keybindings of CTRL-] to jump to a
definition of a variable or function and CTRL-t to jump back. There are many
more for finding for ex who calls a given function.

Just make sure you open vim in the top level directory, the same one as the
cscope.out file which was created when you invoked "make cscope"

Works with emacs too, but I'm not an emacs user.

The documentation on cscope can be a bit confusing, since cscope may be used
in an interactive curses  mode, this is not something I've ever found useful.

So focus on investigating vim cscope bindings and vimrc mappings.

Cheers

Rob Rennison

Regarding "searching
On 10/31 08:55, Tobin C. Harding wrote: 
> CC'd Thomas because I read online recently him commenting on web based
> cross reference tools. 
> 
> Hi,
> 
> Does any one use a terminal based source code cross referencer to search
> the kernel tree?
> 
> thanks,
> Tobin.
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux