Re: copy_from_user and copy_to_user example

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

 



Hi Krushnaal,

On Fri, Sep 18, 2009 at 4:08 PM, krushnaal pai <krisonearth@xxxxxxxxx> wrote:
> Dear all,
>
> I wonder if anyone could provide the example for the usage of copy_from_usr
> and copy_to_usr including the programs both in kernel space and in user
> space.
>

Since, you have asked for a program which uses those calls,
You might want to look at OHSM's ioctl interface.

http://ohsm.git.sourceforge.net/git/gitweb.cgi?p=ohsm/mkatiyar/.git;a=blob;f=kernel/admin.c;h=cef8b6f894399cdb69454e0d946e453d685bb918;hb=refs/heads/ohsm_next

> how to define the memory or buffer where the data is communicated.
>
> thanks very much,
> k



-- 
Regards,
Sandeep.





 	
“To learn is to change. Education is a process that changes the learner.”

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[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