Read file in kernel space
I want to write some kernel code that reads and writes files, but I'm a bit stumped because vfs_read() and vfs_write() take pointers to userspace buffers. I assume that, if I just pass a kmalloc'd one, the filesystem code will call access_ok() or similar and choke.
So, how can I avoid this *OR* how do I temporarily allocate a userspace buffer that I can pass to vfs_read() and vfs_write()? thanks |
http://www.linuxjournal.com/article/8110
try this, I read this a while ago and it seems to be what you want. HTH. |
fantastic. Thanks a lot.
|
All times are GMT -5. The time now is 12:02 AM. |