How to open a file with KLD

Hello, everybody,
I would like to know how to open a file using kld, and be able to write the same. Because I can not use the system call

I create a Character Device, where have information, my KLD read a Character Device and write the information on file .txt for example.

Thanks:stud
 
Check out ftp.FreeBSD.org, in the doc nodes there are files there in a subnode I think will get you started. It has a tutorial and a little driver skeleton. "Driver" or similar....
 
Back
Top