Re: how can I find where is the macro or function deifined

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

 



Hi,

git grep is very usefull to find stuff in the kernel tree. You can find macros using:

git grep -n '#define list_entry('

to find file and line number of the macro list_entry.

Regards,

Iuro Nascimento

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 .
> 
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://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