Hi all,
I'm current working on a kernel module that needs to read a data file at load time, but I don't know how to do that. I know reading or writing files from a kernel module is not a good idea, but that file contains one million number that was pre-calculated in userland using complex math formula. That's too difficult to implement in kernel space.
I had done this in Linux successfully. Now I need to implement it in FreeBSD, and is stuck on this issue. Does FreeBSD provide some mechanisms to do file I/O in kernel module?
Thanks a lot.
walden
I'm current working on a kernel module that needs to read a data file at load time, but I don't know how to do that. I know reading or writing files from a kernel module is not a good idea, but that file contains one million number that was pre-calculated in userland using complex math formula. That's too difficult to implement in kernel space.
I had done this in Linux successfully. Now I need to implement it in FreeBSD, and is stuck on this issue. Does FreeBSD provide some mechanisms to do file I/O in kernel module?
Thanks a lot.
walden