String Functions in Linux Kernel
am 23.09.2011 07:51:50 von Chandrabhanu Mahapatra
Is it safe to use string.h functions in kernel which are mostly user
level functions.
What is the difference when I write
#include
and
#include
Where does each of the above point to in the linux kernel directory?
In Linux-3.0/include/linux/string.h I found an entry for
#include
What does the above exactly mean?
Are there string safe function present in linux as like in windows driver model?
--
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
Re: String Functions in Linux Kernel
am 23.09.2011 10:56:17 von Chandrabhanu Mahapatra
#include actually refers to /usr/include/string.h present on
the system whereas
#include refers to
/usr/src/linux-headers-2.6.35-22-generic/include/linux/strin g.h if
your linux kernel version is 2.6.535.22 or to corresponding kernel
directory you have targeted the compiler to.
linux/string.h contains functions optimized for kernel but I still
dont understand why does it still include string.h.
On Fri, Sep 23, 2011 at 11:21 AM, Chandrabhanu Mahapatra
wrote:
> Is it safe to use string.h functions in kernel which are mostly user
> level functions.
> What is the difference when I write
> #include
> and
> #include
> Where does each of the above point to in the linux kernel directory?
> In Linux-3.0/include/linux/string.h I found an entry for
> #include
> What does the above exactly mean?
> Are there string safe function present in linux as like in windows driver model?
>
> --
> Chandrabhanu Mahapatra
>
--
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