Re: How can I locate a struct's defination?

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

 



On Sun, Aug 2, 2015 at 8:01 AM, Navy Cheng <navych@xxxxxxx> wrote:
> Hi,
> I use emacs and tags to read kernel source. The tags is create by
>
>     make tags
>
> in the kernel source tree. When I want to find a struct's defination,
> something goes wrong. For example: when I find *dentry* , the first
> result is:
>
>     struct rchan_buf
>     {
>        ...
>             struct dentry *dentry;          /* channel file dentry */
>        ...
>     }
>
> There are so many items like this before I find
>
>     struct dentry
>     {
>         ....
>     }

Usually the definition has the curly brace on the same line, like this:

struct dentry {.

Just search for "{", it work in vim.

Daniel.

_______________________________________________
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