Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

/proc/kallsyms format, sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas

Links

XODOX
Impressum

#1: String Functions in Linux Kernel

Posted on 2011-09-23 07:51:50 by 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<string.h>
and
#include<linux/string.h>
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<string.h>
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

Report this message

#2: Re: String Functions in Linux Kernel

Posted on 2011-09-23 10:56:17 by Chandrabhanu Mahapatra

#include<string.h> actually refers to /usr/include/string.h present on
the system whereas
#include<linux/string.h> 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
<chandrabhanu.anand@gmail.com> 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<string.h>
> and
> #include<linux/string.h>
> 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<string.h>
> 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

Report this message