Re: Library (ab)use in kernel land

2004-09-01 Thread Brian O'Shea
--- Mike Bristow <[EMAIL PROTECTED]> wrote: > > And manual pages in section 9 of the manual, eg: > > $ man 9 printf > > will give you the docs for the printf that you can call in kernelspace. Yes, however I can't find a man page that nicely outlines all of the kernel libc-like functions availab

Re: Library (ab)use in kernel land

2004-08-31 Thread Mike Bristow
On Sat, Aug 28, 2004 at 01:40:50PM -0700, Brian O'Shea wrote: > That being said, there are a few analogs of the standard C > library functions in the kernel, such as printf, strcpy, bcmp, > qsort, etc. You can find sources for them in src/sys/libkern/ > with prototypes in the src/sys/sys/libkern.h

Re: Library (ab)use in kernel land

2004-08-28 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]> Paolo Pisati <[EMAIL PROTECTED]> writes: : As a general rule of thumb, : which are the safe libraries we can link against : while developing a kernel module? None. : I mean, can i use libc functions? All of them? No. You can't. : And what about the

Re: Library (ab)use in kernel land

2004-08-28 Thread Brian O'Shea
Hello Paolo, --- Paolo Pisati <[EMAIL PROTECTED]> wrote: > > As a general rule of thumb, > which are the safe libraries we can link against > while developing a kernel module? The standard C libraries that we have all come to know and love can only be used from user space. This is mainly beca

Re: Library (ab)use in kernel land

2004-08-28 Thread Dag-Erling Smørgrav
Paolo Pisati <[EMAIL PROTECTED]> writes: > which are the safe libraries we can link against while developing a > kernel module? none. DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/lis

Library (ab)use in kernel land

2004-08-28 Thread Paolo Pisati
As a general rule of thumb, which are the safe libraries we can link against while developing a kernel module? I mean, can i use libc functions? All of them? And what about the other libraries in the base system? Thanks. -- Paolo Italian FreeBSD User Group: http://www.gufi.org __