Subject: Re: IPF in our source tree
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 06/01/2007 12:36:13
On Fri, Jun 01, 2007 at 01:31:52PM +0300, Martti Kuparinen wrote:
> I don't understand this, copyin() is a normal function which takes 3
> arguments and returns an int. The BCOPYIN macro is just an "alias" for
> copyin(), i.e. the preprosessor replaces BCOPYIN with copyin before the
> compiler compiles the code.
No. COPYIN is the alias for copyin(), but BCOPYIN is memcpy(), which does
not return an error value. The ioctl framework already has checked for
failures from copyin() in this case.
Martin