public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk@arm.linux.org.uk>
To: Brian Gerst <bgerst@didntduck.org>
Cc: blesson paul <blessonpaul@msn.com>, linux-kernel@vger.kernel.org
Subject: Re: put_user_byte()
Date: Sat, 13 Apr 2002 09:57:28 +0100	[thread overview]
Message-ID: <20020413095728.A19090@flint.arm.linux.org.uk> (raw)
In-Reply-To: <F38uSbh29cM3oryKFRJ00031d09@hotmail.com> <3CB56D05.6040702@didntduck.org>

On Thu, Apr 11, 2002 at 07:01:25AM -0400, Brian Gerst wrote:
> Use put_user(val, uaddr).

Correct.

> val must be of type unsigned char (or casted to it).

put_user does not care what value you pass it as val.  It only cares
about the type of uaddr.  The following are all equivalent as far as
the size of the data type written to user space:

	put_user((int)foo, (char *)bar);
	put_user((char)foo, (char *)bar);
	put_user((long)foo, (char *)bar);

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


      reply	other threads:[~2002-04-13  8:57 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 ` put_user_byte() Brian Gerst
2002-04-13  8:57   ` Russell King [this message]

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=20020413095728.A19090@flint.arm.linux.org.uk \
    --to=rmk@arm.linux.org.uk \
    --cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox