[Linux-ia64] [Fwd: memcpy failure]

Christian Cotte-Barrot
2002-11-14T08:31:18Z

[-- Attachment #1: Type: text/plain, Size: 6 bytes --]

ditto.

[-- Attachment #2: Type: message/rfc822, Size: 2749 bytes --]

From: David Mosberger <davidm@napali.hpl.hp.com>
To: "Chen, Kenneth W" <kenneth.w.chen@intel.com>
Cc: "Christian Cotte-Barrot" <Christian.Cotte-Barrot@bull.net>, "David Mosberger" <davidm@napali.hpl.hp.com>, "Stephane Eranian" <eranian@frankl.hpl.hp.com>
Subject: RE: memcpy failure
Date: Wed, 13 Nov 2002 21:52:12 -0800
Message-ID: <15827.14860.687278.896618@napali.hpl.hp.com>

>>>>> On Tue, 12 Nov 2002 10:29:23 -0800, "Chen, Kenneth W" <kenneth.w.chen@intel.com> said:

Ken> The retrun value for memcpy doesn't follow the user space
Ken> memcpy exactly. kernel memcpy always return 0.

Why are you saying this? As far as I know, the kernel memcpy() is
expected to return the (initial) destination address. Perhaps you're
thinking of copy_user()?

(If it was up to me, memcpy() would be returning void...).

--david