From: me@sillymon.ch (Silvan Jegen) Date: Tue, 26 Apr 2016 15:31:51 +0200 Subject: unable to find function definition In-Reply-To: References: <20160420072625.GA27201@portege.ulakbim.gov.tr> <2cab8174b247724af07b444437ee423c@sillymon.ch> Message-ID: <37971c0991ed34ec1d07ab6cc5851ff4@sillymon.ch> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Am 2016-04-26 14:56, schrieb Jay Aurabind: > On 26 April 2016 at 16:15, Silvan Jegen wrote: >> Am 2016-04-26 10:50, schrieb Gadre Nayan: >>> >>> Ctags can help. Ctags -R on the entire source. >> >> >> In the Kernel Makefile there is actually a target for this. It's >> called >> either 'tags' or 'tag' so >> >> make tags [or tag] >> >> should create the ctag file for you. > > I use ctags with vim. Mostly it takes me to declaration of the > function pointer. Then i go grep for that function and look for its > assignment. I was wondering if there is some plugin or script which > can find assignments to such function pointers. A simple but naive approach would be a grep command like this. grep "function_pointer =" `find . -iname '*.c' -o -iname '*.h'` Cheers, Silvan