Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all, I'm trying to copy a structure instance into a userspace buffer using copy_to_user. I understood that the buffer is being copied from kernel space to user space, but ...
  1. #1
    Just Joined!
    Join Date
    Nov 2009
    Posts
    16

    Reading a userspace buffer from a userspace program

    Hi all,
    I'm trying to copy a structure instance into a userspace buffer using copy_to_user. I understood that the buffer is being copied from kernel space to user space, but how do I use that buffer from my userspace c program?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    Please move this thread to The Linux Kernel forum.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...