* [PATCH] generic syscalls: wire up preadv2 and pwritev2 syscalls
@ 2016-04-11 9:17 Andre Przywara
2016-04-23 22:16 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Andre Przywara @ 2016-04-11 9:17 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Will Deacon, Catalin Marinas, linux-arch, linux-kernel,
linux-arm-kernel
These new syscalls are implemented as generic code, so enable them for
architectures like arm64 which use the generic syscall table.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
include/uapi/asm-generic/unistd.h | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/include/uapi/asm-generic/unistd.h b/include/uapi/asm-generic/unistd.h
index 2622b33..6e0f5f0 100644
--- a/include/uapi/asm-generic/unistd.h
+++ b/include/uapi/asm-generic/unistd.h
@@ -717,9 +717,13 @@ __SYSCALL(__NR_membarrier, sys_membarrier)
__SYSCALL(__NR_mlock2, sys_mlock2)
#define __NR_copy_file_range 285
__SYSCALL(__NR_copy_file_range, sys_copy_file_range)
+#define __NR_preadv2 286
+__SYSCALL(__NR_preadv2, sys_preadv2)
+#define __NR_pwritev2 287
+__SYSCALL(__NR_pwritev2, sys_pwritev2)
#undef __NR_syscalls
-#define __NR_syscalls 286
+#define __NR_syscalls 288
/*
* All syscalls below here should go away really,
--
2.7.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] generic syscalls: wire up preadv2 and pwritev2 syscalls
2016-04-11 9:17 [PATCH] generic syscalls: wire up preadv2 and pwritev2 syscalls Andre Przywara
@ 2016-04-23 22:16 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2016-04-23 22:16 UTC (permalink / raw)
To: Andre Przywara
Cc: Will Deacon, Catalin Marinas, linux-arch, linux-kernel,
linux-arm-kernel
On Monday 11 April 2016 10:17:46 Andre Przywara wrote:
> These new syscalls are implemented as generic code, so enable them for
> architectures like arm64 which use the generic syscall table.
>
> Signed-off-by: Andre Przywara <andre.przywara@arm.com>
>
I've forwarded it now as a pull request. Generally speaking, I'd much prefer
anyone who adds a syscall to update asm-generic/unistd.h as well
(as documented in Documentation/adding-syscalls.txt), there is no
need for me to put those patches into the asm-generic git tree first.
On a related topic, I've been thinking (for years) about coming up with a
way to have all future syscalls just get added to a single file in the
kernel to have them appended to the tables for all architectures. There
are two basic methods that seem appropriate here for avoiding the split
between unistd.h and syscalls.S:
a) The current asm-generic method of interleaving the __NR_* macro definitions
and the entry in a .c file array, including the header multiple times
to get all the tables
b) generating both files from an input like x86 does with
arch/x86/entry/syscalls/ infrastructure
I think we need something similar to b) but with some extensions to allow
extending the architecture specific tables in a nice way, rather than
having to have one file per architecture.
Arnd
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-23 22:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-11 9:17 [PATCH] generic syscalls: wire up preadv2 and pwritev2 syscalls Andre Przywara
2016-04-23 22:16 ` Arnd Bergmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox