All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Gerst <bgerst@didntduck.org>
To: blesson paul <blessonpaul@msn.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: put_user_byte()
Date: Thu, 11 Apr 2002 07:01:25 -0400	[thread overview]
Message-ID: <3CB56D05.6040702@didntduck.org> (raw)
In-Reply-To: <F38uSbh29cM3oryKFRJ00031d09@hotmail.com>

blesson paul wrote:
> Hi all
>                I need to copy some data from kernel memory space to user 
> memory space. When I investigated, the command for that purpose is 
> put_user_byte(). But in kernel2.4, I can't find the implementation of 
> this command. I want to know the command which replaced put_user_byte() 
> in 2.4 kernel. Also I want to know whether there is any synonyms for 
> verify_area() in kernel 2.4
> regards
> Blesson Paul

Use put_user(val, uaddr).  val must be of type unsigned char (or casted 
to it).  It will return 0 on success or -EFAULT on fault.  verify_area() 
is normally not needed in 2.4, unless you are copying many values to 
user space and only want to do the priviledge check once on the whole range.

-- 

						Brian Gerst


  reply	other threads:[~2002-04-11 11:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11  5:54 put_user_byte() blesson paul
2002-04-11 11:01 ` Brian Gerst [this message]
2002-04-13  8:57   ` put_user_byte() Russell King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CB56D05.6040702@didntduck.org \
    --to=bgerst@didntduck.org \
    --cc=blessonpaul@msn.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.