Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot, bind-address mysql multiple, sanibleone xxxx, ftp://192.168.100.100/, www.xxxcon

Links

XODOX
Impressum

#1: Undefined Functions in use

Posted on 2011-09-26 12:21:53 by Chandrabhanu Mahapatra

Where can I find the definition of TIMER_INITIALIZER, DECLARE_MUTEX,
DECLARE_MUTEX_LOCKED, softirq_vec,__builtin_constant_p, INIT_WORK,
etc.?

--
Chandrabhanu Mahapatra
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Report this message

#2: Re: Undefined Functions in use

Posted on 2011-09-27 12:21:58 by Chandrabhanu Mahapatra

I used cscope and vim editor but still I am only finding the usage of
the above symbols but no definition.
Are these symbols GCC builtin symbols or ARM specific symbols.

On Mon, Sep 26, 2011 at 4:30 PM, Xu, Anhua <anhua.xu@intel.com> wrote:
> Install your tools ctags and use it to track all the symbols in the source.
> google ctags, you will find solutions
>
> -----Original Message-----
> From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-owner@vger.kernel.org] On Behalf Of Chandrabhanu Mahapatra
> Sent: Monday, September 26, 2011 6:22 PM
> To: linux-newbie
> Subject: Undefined Functions in use
>
> Where can I find the definition of TIMER_INITIALIZER, DECLARE_MUTEX,
> DECLARE_MUTEX_LOCKED, softirq_vec,__builtin_constant_p, INIT_WORK,
> etc.?


--
Chandrabhanu Mahapatra
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Report this message

#3: Re: Undefined Functions in use

Posted on 2011-09-27 12:28:16 by ratheesh k

search at http://lxr.linux.no/linux

-Ratheesh

On Tue, Sep 27, 2011 at 3:51 PM, Chandrabhanu Mahapatra
<chandrabhanu.anand@gmail.com> wrote:
> I used cscope and vim editor but still I am only finding the usage of
> the above symbols but no definition.
> Are these symbols GCC builtin symbols or ARM specific symbols.
>
> On Mon, Sep 26, 2011 at 4:30 PM, Xu, Anhua <anhua.xu@intel.com> wrote=
:
>> Install your tools ctags and use it to track all the symbols in the =
source.
>> google ctags, you will find solutions
>>
>> -----Original Message-----
>> From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-owner@=
vger.kernel.org] On Behalf Of Chandrabhanu Mahapatra
>> Sent: Monday, September 26, 2011 6:22 PM
>> To: linux-newbie
>> Subject: Undefined Functions in use
>>
>> Where can I find the definition of TIMER_INITIALIZER, DECLARE_MUTEX,
>> DECLARE_MUTEX_LOCKED, softirq_vec,__builtin_constant_p, INIT_WORK,
>> etc.?
>
>
> --
> Chandrabhanu Mahapatra
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbi=
e" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Report this message

#4: Re: Undefined Functions in use

Posted on 2011-09-27 12:29:26 by Aniruddha Bhattacharyya

=46ound 2 repository:
http://svn.apache.org/repos/asf/apr/apr/trunk/atomic/unix/mu tex.c

http://www.cs.helsinki.fi/linux/linux-kernel/2001-28/0758.ht ml


On Tue, Sep 27, 2011 at 3:51 PM, Chandrabhanu Mahapatra
<chandrabhanu.anand@gmail.com> wrote:
>
> I used cscope and vim editor but still I am only finding the usage of
> the above symbols but no definition.
> Are these symbols GCC builtin symbols or ARM specific symbols.
>
> On Mon, Sep 26, 2011 at 4:30 PM, Xu, Anhua <anhua.xu@intel.com> wrote=
:
> > Install your tools ctags and use it to track all the symbols in the=
source.
> > google ctags, you will find solutions
> >
> > -----Original Message-----
> > From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-owner=
@vger.kernel.org] On Behalf Of Chandrabhanu Mahapatra
> > Sent: Monday, September 26, 2011 6:22 PM
> > To: linux-newbie
> > Subject: Undefined Functions in use
> >
> > Where can I find the definition of TIMER_INITIALIZER, DECLARE_MUTEX=
,
> > DECLARE_MUTEX_LOCKED, softirq_vec,__builtin_constant_p, INIT_WORK,
> > etc.?
>
>
> --
> Chandrabhanu Mahapatra
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbi=
e" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Report this message

#5: Re: Undefined Functions in use

Posted on 2011-09-27 12:47:19 by Aniruddha Bhattacharyya

It is also possible that the signature is changed and renamed to
something else.

In Linux, symbol signature change can be drastic between ver to ver.


On Tue, Sep 27, 2011 at 3:51 PM, Chandrabhanu Mahapatra
<chandrabhanu.anand@gmail.com> wrote:
>
> I used cscope and vim editor but still I am only finding the usage of
> the above symbols but no definition.
> Are these symbols GCC builtin symbols or ARM specific symbols.
>
> On Mon, Sep 26, 2011 at 4:30 PM, Xu, Anhua <anhua.xu@intel.com> wrote=
:
> > Install your tools ctags and use it to track all the symbols in the=
source.
> > google ctags, you will find solutions
> >
> > -----Original Message-----
> > From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-owner=
@vger.kernel.org] On Behalf Of Chandrabhanu Mahapatra
> > Sent: Monday, September 26, 2011 6:22 PM
> > To: linux-newbie
> > Subject: Undefined Functions in use
> >
> > Where can I find the definition of TIMER_INITIALIZER, DECLARE_MUTEX=
,
> > DECLARE_MUTEX_LOCKED, softirq_vec,__builtin_constant_p, INIT_WORK,
> > etc.?
>
>
> --
> Chandrabhanu Mahapatra
> --
> To unsubscribe from this list: send the line "unsubscribe linux-newbi=
e" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Report this message

#6: RE: Undefined Functions in use

Posted on 2011-09-28 03:28:30 by anhua.xu

Yes, cscope should be more powerful than ctags. Could you try to grep these items in your source ? If they are not there. Cscope definitely cannot find them.

In the latest Linux kernel 3.xx.xx, I cannot grep DECLARE_MUTEX and DECLARE_MUTEX_LOCKED. Both of them may be deprecated by the kernel.

For other items like: INIT_WORK and TIMER_INITIALIZER can be found via ctags. I'm not sure if your cscope covers all the source files.

__builtin_constant_p is more like a gcc specific compiling option. This has beyond the kernel scope. If interested, please refer to gcc manual for more info.

Also, cscope and ctags can only cover C files. Some functions or micros are defined in Assembly files. So you cannot find them in cscope.

The best way to learn is to google them. You must find these questions has been asked for many times.

Good Luck

-----Original Message-----
From: Chandrabhanu Mahapatra [mailto:chandrabhanu.anand@gmail.com]
Sent: Tuesday, September 27, 2011 6:22 PM
To: Xu, Anhua
Cc: linux-newbie
Subject: Re: Undefined Functions in use

I used cscope and vim editor but still I am only finding the usage of
the above symbols but no definition.
Are these symbols GCC builtin symbols or ARM specific symbols.

On Mon, Sep 26, 2011 at 4:30 PM, Xu, Anhua <anhua.xu@intel.com> wrote:
> Install your tools ctags and use it to track all the symbols in the source.
> google ctags, you will find solutions
>
> -----Original Message-----
> From: linux-newbie-owner@vger.kernel.org [mailto:linux-newbie-owner@vger.kernel.org] On Behalf Of Chandrabhanu Mahapatra
> Sent: Monday, September 26, 2011 6:22 PM
> To: linux-newbie
> Subject: Undefined Functions in use
>
> Where can I find the definition of TIMER_INITIALIZER, DECLARE_MUTEX,
> DECLARE_MUTEX_LOCKED, softirq_vec,__builtin_constant_p, INIT_WORK,
> etc.?


--
Chandrabhanu Mahapatra
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Report this message

#7: Re: Undefined Functions in use

Posted on 2011-09-28 07:52:23 by Chandrabhanu Mahapatra

On Wed, Sep 28, 2011 at 6:58 AM, Xu, Anhua <anhua.xu@intel.com> wrote:
> Yes, cscope should be more powerful than ctags. Could you try to grep=
these items in your source ? If they are not there. Cscope definitely =
cannot find them.
>
> In the latest Linux kernel 3.xx.xx, I cannot grep DECLARE_MUTEX and D=
ECLARE_MUTEX_LOCKED. Both of them may be deprecated by the kernel.

Can you tell what these have been deprecated into? The new declaration
names atleast.

> For other items like: INIT_WORK and TIMER_INITIALIZER can be found vi=
a ctags. =A0I'm not sure if your cscope covers all the source files.

Is there any tool supporting vim or any other editor that can also
parse header(.h), and assembly files ( .S etc.) files for symbols?

> __builtin_constant_p is more like a gcc specific compiling option. Th=
is has beyond the kernel scope. If interested, please refer to gcc manu=
al for more info.

Thanks for letting me know. Unlike lxr for linux kernel reference is
there any website for GCC refrences?

--=20
Chandrabhanu Mahapatra
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie"=
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Report this message

#8: RE: Undefined Functions in use

Posted on 2011-09-28 08:29:00 by sannikov

Hi.

> In the latest Linux kernel 3.xx.xx, I cannot grep DECLARE_MUTEX and
> DECLARE_MUTEX_LOCKED. Both of them may be deprecated by the kernel.

AFAIK DECLARE_MUTEX is deprecated. It was based on semaphores.
In new kernels you should to use DEFINE_MUTEX.
http://lxr.linux.no/linux+v3.0.4/include/linux/mutex.h
This happens between 2.6.36 and 2.6.38.


> __builtin_constant_p is more like a gcc specific compiling option. This
> has beyond the kernel scope. If interested, please refer to gcc manual
for
> more info.

http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html

PS: Google is your friend. ;)

--
WBR, Alexander Sannikov.
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Report this message