On Fri, 19 Jul 2013 13:25:35 +0530, Prashant Shah said:
> You can even use filp_open(), vfs_read(), vfs_write() if sys_* is not 
> available
> https://github.com/prashants/km/blob/master/filerw/filerw.c

The reasons to not do file I/O from inside the kernel are many and well
documented.  Of course, if you're trying to do something like unionfs
or fuse, you may not have a choice.

And if you're doing something like that, it is probablly better to *avoid*
using the sys_* calls even if they are available, but instead use filp_open()
and the vfs_ functions.

Attachment: pgpp07k9ZrIau.pgp
Description: PGP signature

_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to