Avatar of ambuli
ambuli
Flag for United States of America asked on

Linux kernel source code browsing

Hi Experts,

I would like to know which editor + plugins are good for browsing large projects like linux kernel, libc etc.  I am familiar with VIM and am using gvim for my normal editing.  Is there good plugins so that I can find references/ definitions etc by selecting function names, variable names etc.  I heard about ctags but not sure how to try it when there are directory trees and many header/source files.  Any direction would be helpful.  thank you.
Please let me know of any tools(editors or otherwise that would help me with this)
thank you.
LinuxLinux OS DevC

Avatar of undefined
Last Comment
phoffric

8/22/2022 - Mon
arnold

Trying to understand what you are asking.
You want an editor that in an example
#include <stdio.h>

Printf ()
You would want upon the highlighting of printf to get the parameter/definitional options displayed.
Correct?

What scope of editing of the kernel source are you looking do.
Usually, one uses make menuconfig through which you can make several selection by removing/excluding modules/components from being included in the resulting kernel.

Specifically for the kernel, you may want to join the kernel.org site and see what/how they breakup/modularize the construction/assembly of the kernel.
F. Dominicus

There are the tools ctags and etags. which I found very useful for code browsing. For Emacs there is CEDET which should make C programming easier. AFAIKT for Eclipse it is CDT, but I do not know if anyone ever has tried to get the linux source code beyond it....
Chris Sandrini

Hi

The Linux Kernel is written in C. So choose any C programming editor and you should be fine browsing it.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
phoffric

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
phoffric

Eclipse/CDT is a free alternative to Understand, and it can be used to review the Linux kernel.
https://wiki.eclipse.org/HowTo_use_the_CDT_to_navigate_Linux_kernel_source