Re: copy to user space

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

 



On Tue, Nov 20, 2001 at 11:27:12AM +0000, Luis Miguel Correia Henriques wrote:
> Hi,
> 
> how can I copy a stream of bytes to user space? this user space can be
> anywhere in a process space (even code segment...). I tried memcpy but it
> gave me "Unable to handle kernel paging request at virtual address ...".
> With copy_to_user, it seemed to work but, when I tried to verify if it was
> really written, it didn't!

Take a look in copy_to_user() to copy to user space and to copy from user space
is copy_from_user().


-- 
Flávio Bruno Leitner  http://fly.to/fbl
Conectiva Linux http://www.conectiva.com.br/
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[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