Re: Open and copy a file from the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



-- 
        ---P.K.S

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux