RE: Undefined Functions in use

sannikov <[email protected]>
Newsgroups org.kernel.vger.linux-newbie
Message-ID <[email protected]>
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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.