Quote:> Can I character device driver access or write to a file? I been told
> NO.
you've probably been told you *shouldn't* access files from kernel
mode, and it's generally true
Quote:> If the answer is no please explain why.
you should never put a text parser in kernel mode. All a device driver
should do is communicating with the hardware and other parts of the
system, and manipulate the simplest binary data possible. I see you
need a configuration file for your device - well, don't. Parse the
configuration file in an user-mode program, and pass the pre-parsed
data to the driver through a custom IOCTL
Quote:> My background is writing device drivers for Windows NT. It was hard
> for me to believe that any device driver couldn't read/write to a
> file.
well, I don't know about Solaris, but in Windows NT, you can open files
from kernel mode. You open them with ZwCreateFile, and read from/write
to them with ZwReadFile/ZwWriteFile (all of which are documented in the
DDK) - not to mention you can build the IRPs by yourself (documented
too) for the maximum flexibility you could ask for