Re: [PATCH 3/3] syscalls: Add a bit of documentation to __SYSCALL_DEFINE

From: Al Viro
Date: Sun Jan 28 2018 - 17:50:39 EST


On Sun, Jan 28, 2018 at 12:42:24PM -0800, Linus Torvalds wrote:

> The 64-bit argument for 32-bit case would end up having to have a few
> more of those architecture-specific oddities. So not just
> "argument1(ptregs)", but "argument2_32_64(ptregs)" or something that
> says "get me argument 2, when the first argument is 32-bit and I want
> a 64-bit one".

Yeah, but... You either get to give SYSCALL_DEFINE more than just
the number of arguments (SYSCALL_DEFINE_WDDW) or you need to go
for rather grotty macros to pick that information. That's pretty
much what I'd tried; it hadn't been fun at all...