On Thu, Jun 27, 2002 at 11:25:03AM -0700, Greg KH wrote:
> On Thu, Jun 27, 2002 at 01:06:12PM -0500, Javier wrote:
> > Hi my fiends I am customize  acm.c driver un my linuz, but I have 
> > problem I am using stdio.h and stdlib.h but when I compiled the driver I 
> > have don't problem but when I use insmod acm.o , appears the next 
> > messages unresolved symbol system and I want to know if any know which 
> > the best way compile only this driver , please,
> 
> You can not include stdio.h into a kernel driver, sorry.
> 
> You must only use the kernel header files.
> 
> You also can not (well should not) write to a file from a kernel driver.
> 
> greg k-h
> 

In fact, you can, but not directly :
use printk( KERN_ERR "your %s", "message" )

I don't remember precisely what the header are, try to find some
examples ( or use http://lxr.linux.no/ ).

It will use some tricky entry in proc or something like that to be
logged. If you customize your syslog.conf, it will write to a file. 

Definitevily : kernel work cannot use standard librarie ( any of it ).
Because, std lib depends on kernel... ( so if kernel depends on std
libs, there is a problem )

Sylvain LE GALL


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to