Possible values ​​for `uname -m`

uname(1)the command line utility has a parameter -mthat prints "hardware name".

On Linux, this field comes from a member machine struct utsnamethat is populated with a system call uname(2).

Many other language APIs return this information:

What are the possible values ​​for the machine field?

+4
source share
1 answer

Linux

(v4.12 - July 2017)

Refer to the system call source newuname .

, Linux UTS, init_uts_ns machine UTS_MACHINE, .

, machine override_architecture(), 32- "" "", COMPAT_UTS_MACHINE.

UTS_MACHINE Makefile , ARCH. ARCH, UTS_MACHINE

arch/ grep - Linux (git grep 'UTS_MACHINE\s*:=' git grep COMPAT_UTS_MACHINE) :

  • alpha
  • arc

  • arm

  • aarch64_be (arm64)
  • aarch64 (arm64)
  • armv8b (arm64 compat)
  • armv8l (arm64 compat)

  • blackfin

  • c6x
  • cris
  • frv
  • h8300
  • hexagon
  • ia64
  • m32r
  • m68k
  • metag
  • microblaze
  • mips (native compat)
  • mips64 (mips)
  • mn10300
  • nios2
  • openrisc
  • parisc ( )
  • parisc64 (parisc)
  • ppc (powerpc native compat)
  • ppc64 (powerpc)
  • ppcle (powerpc native compat)
  • ppc64le (powerpc)
  • s390 (s390x compat)
  • s390x
  • score
  • sh
  • sh64 (sh)
  • sparc ( )
  • sparc64 (sparc)
  • tile
  • unicore32
  • i386 (x86)
  • i686 (x86 compat)
  • x86_64 (x64)
  • xtensa
+7

Source: https://habr.com/ru/post/1681543/


All Articles