Hi, I want to process a copy operation from file sent from user space - this copying should be inside the kernel.. I read about using filp_open , will this help me ? Thanks, Nada
On Tue, 27 May 2014 10:19:37 +0300, Nada Saif said:
I want to process a copy operation from file sent from user space - this copying should be inside the kernel..
Why? What problem are you trying to solve by doing this? This is almost certainly a bad design, for a number of reasons. And there's probably a better way to do what you're trying to accomplish.
I read about using filp_open , will this help me ?
Probably not.
how about call_usermodehelper? On Tue, May 27, 2014 at 3:19 PM, Nada Saif <nada.saif7@gmail.com> wrote:
Hi,
I want to process a copy operation from file sent from user space - this copying should be inside the kernel..
I read about using filp_open , will this help me ?
Thanks, Nada
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Tue, May 27, 2014 at 12:49 PM, Nada Saif <nada.saif7@gmail.com> wrote:
Hi,
I want to process a copy operation from file sent from user space - this copying should be inside the kernel..
I read about using filp_open , will this help me ?
I guess you want to open the files inside kernel and then copy from one to another. That's just not good. If you are trying to learn something like passing data from user space to kernel, you should probably look at sysfs. Very simple wrappers exist that allow you to create a dummy sysfs file(s) where you can have your store and show callbacks do the magic you want to learn.
Thanks, Nada
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-- ---P.K.S
participants (4)
-
enjoy mindful -
Nada Saif -
Pranay Srivastava -
Valdis.Kletnieks@vt.edu