Open and copy a file from the kernel

Pranay Srivastava pranjas at gmail.com
Tue May 27 04:29:43 EDT 2014


On Tue, May 27, 2014 at 12:49 PM, Nada Saif <nada.saif7 at 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 at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
        ---P.K.S



More information about the Kernelnewbies mailing list