Skip to content

RFC UAPI,x86: export syscall numbers for all x86 archs

David Drysdale linux-api lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest1 patch 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1UAPI,x86: export syscall numbers for all x86 archsarch/x86/entry/syscalls/Makefile arch/x86/include/uapi/asm/Kbuild+11 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/1] UAPI,x86: export syscall numbers for all x86 archs

A while ago I was trying to build a seccomp-bpf filter program that would survive a change of x86 architecture. This was complicated for all sorts of reasons, but one of the problems was that the different syscall numbers aren't all available at the same time -- hence this patch.

Naming-wise, Andy Lutomirski has indicated he'd prefer the prefixes to be __NR_x86_64_, __NR_x86_64_x32_ and __NR_i386_; however, for the latter two sets of numbers there are existing headers that use different prefixes (__NR_x32_ and __NR_ia32_), so altering those would involve a change and/or an additional set of definitions. For the new constants I've left in my original suggestion (__NR_amd64_) for the time being.

What are folks' thoughts about the preferred naming for these?

David Drysdale (1):
UAPI,x86: export syscall numbers for all x86 archs

 arch/x86/entry/syscalls/Makefile | 11 ++++++++---
 arch/x86/include/uapi/asm/Kbuild |  3 +++
 2 files changed, 11 insertions(+), 3 deletions(-)

--
2.4.3.573.g4eafbef