From mboxrd@z Thu Jan 1 00:00:00 1970 From: navych@126.com (Navy Cheng) Date: Wed, 29 Jul 2015 01:41:34 +0800 Subject: how can I find where is the macro or function deifined In-Reply-To: References: Message-ID: <20150728174134.GB2384@debian> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Tue, Jul 28, 2015 at 06:03:16PM +0200, Ahmed Soliman wrote: > Hi; > when I used libc I never memorized where each function is located > beyond the basics (for example I never knew if strlen is in string.h > or ctype.h or strlib.h ) > I just check out the functions man pages by man strlen > is their such functionality for the kernel where I dont need to > memorize the dependencies for example if MODULE_LICENSE is in kernel.h > or module.h with out using the internel to google them . > *make tags* in the root directory of the kernel tree. Then a file named TAGS is created. TAGS is treated as one part of the tree when *git status*. You can load it with Vim or emacs. Google it for details.