* How can I locate a struct's defination?
@ 2015-08-02 5:01 Navy Cheng
2015-08-02 16:35 ` Daniel Baluta
2015-08-03 16:15 ` Jeff Haran
0 siblings, 2 replies; 3+ messages in thread
From: Navy Cheng @ 2015-08-02 5:01 UTC (permalink / raw)
To: kernelnewbies
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
{
....
}
How can I find the struct's defination directly?
Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* How can I locate a struct's defination?
2015-08-02 5:01 How can I locate a struct's defination? Navy Cheng
@ 2015-08-02 16:35 ` Daniel Baluta
2015-08-03 16:15 ` Jeff Haran
1 sibling, 0 replies; 3+ messages in thread
From: Daniel Baluta @ 2015-08-02 16:35 UTC (permalink / raw)
To: kernelnewbies
On Sun, Aug 2, 2015 at 8:01 AM, Navy Cheng <navych@126.com> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* How can I locate a struct's defination?
2015-08-02 5:01 How can I locate a struct's defination? Navy Cheng
2015-08-02 16:35 ` Daniel Baluta
@ 2015-08-03 16:15 ` Jeff Haran
1 sibling, 0 replies; 3+ messages in thread
From: Jeff Haran @ 2015-08-03 16:15 UTC (permalink / raw)
To: kernelnewbies
> -----Original Message-----
> From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-
> bounces at kernelnewbies.org] On Behalf Of Navy Cheng
> Sent: Saturday, August 01, 2015 10:01 PM
> To: kernelnewbies at kernelnewbies.org
> Subject: How can I locate a struct's defination?
>
> 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
> {
> ....
> }
>
> How can I find the struct's defination directly?
>
> Thanks.
https://scan.coverity.com/
Create an account and sign up for the linux project.
It is a proprietary platform but you can sign up for free and it is the best code browser out there. It beats ctags, cscope, etc. by a mile.
Jeff Haran
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-08-03 16:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-02 5:01 How can I locate a struct's defination? Navy Cheng
2015-08-02 16:35 ` Daniel Baluta
2015-08-03 16:15 ` Jeff Haran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).