6. Arch

Architecture, board and bios data

6.1. Authors

  • Klaus Kaempf <kkaempf@suse.de>

6.2. Summary of Module Globals

List of Global Functions

  • alpha - true for all alpha architectures

  • arch_short - Returns general architecture type (one of sparc, mips, ppc, s390, i386, alpha, ia64, x86_64)

  • architecture - Returns full architecture type (one of i386, sparc, sparc64, mips, mips64, ppc, ppc64, alpha, s390_32, s390_64, ia64, x86_64)

  • board_chrp - true for all "CHRP" ppc boards

  • board_iseries - true for all "iSeries" ppc boards

  • board_mac - true for all PPC "MacRISC" boards

  • board_mac_new - true for all "NewWorld" PowerMacs

  • board_mac_old - true for all "OldWorld" powermacs

  • board_pegasos - true for all "Pegasos" and "Efika" ppc boards

  • board_prep - true for all "PReP" ppc boards

  • board_wintel - true for all "Windows/Intel" compliant boards (x86 based)

  • has_pcmcia - true if the system supports PCMCIA But modern notebook computers do not have it. See also Bugzilla #151813#c10

  • has_smp - true if running on multiprocessor board. This only reflects the board, not the actual number of CPUs or the running kernel!

  • i386 - true for all x86 compatible architectures

  • ia64 - true for all IA64 (itanium) architectures

  • is_laptop - true if the system runs on laptop

  • is_uml - true if UML

  • is_xen - true if Xen kernel is running (dom0 or domU)

  • is_xen0 - true if dom0 Xen kernel is running

  • is_xenU - true if domU Xen kernel is running

  • mips - true for all mips architectures (32 or 64 bit)

  • mips32 - true for all 32bit mips architectures

  • mips64 - true for all 64bit mips architectures

  • ppc - true for all ppc architectures (32 or 64 bit)

  • ppc32 - true for all 32bit ppc architectures

  • ppc64 - true for all 64bit ppc architectures

  • s390 - true for all S/390 architectures (32 or 64 bit)

  • s390_32 - true for all 32bit S/390 architectures

  • s390_64 - true for all 64bit S/390 architectures

  • setSMP - Set "Arch::has_smp ()". Since Alpha doesn't reliably probe smp, 'has_smp' must be set later with this function.

  • sparc - true for all sparc architectures (32 or 64 bit)

  • sparc32 - true for all 32bit sparc architectures

  • sparc64 - true for all 64bit sparc architectures

  • x11_setup_needed - run X11 configuration after inital boot this is false in case of: installation on iSeries, installation on S390

  • x86_64 - true for all x86-64 (AMD Hammer) architectures

List of Global Variables

    6.3. Global Functions

    6.3.1. alpha

    true for all alpha architectures

    Return value

    • boolean

    6.3.2. arch_short

    Returns general architecture type (one of sparc, mips, ppc, s390, i386, alpha, ia64, x86_64)

    Return value

    • string - arch_short

    6.3.3. architecture

    Returns full architecture type (one of i386, sparc, sparc64, mips, mips64, ppc, ppc64, alpha, s390_32, s390_64, ia64, x86_64)

    Return value

    • string - architecture

    6.3.4. board_chrp

    true for all "CHRP" ppc boards

    Return value

    • boolean

    6.3.5. board_iseries

    true for all "iSeries" ppc boards

    Return value

    • boolean

    6.3.6. board_mac

    true for all PPC "MacRISC" boards

    Return value

    • boolean

    6.3.7. board_mac_new

    true for all "NewWorld" PowerMacs

    Return value

    • boolean

    6.3.8. board_mac_old

    true for all "OldWorld" powermacs

    Return value

    • boolean

    6.3.9. board_pegasos

    true for all "Pegasos" and "Efika" ppc boards

    Return value

    • boolean

    6.3.10. board_prep

    true for all "PReP" ppc boards

    Return value

    • boolean

    6.3.11. board_wintel

    true for all "Windows/Intel" compliant boards (x86 based)

    Return value

    • boolean

    6.3.12. has_pcmcia

    true if the system supports PCMCIA But modern notebook computers do not have it. See also Bugzilla #151813#c10

    Return value

    • boolean - true if the system supports PCMCIA

    See also:

    • is_laptop

    6.3.13. has_smp

    true if running on multiprocessor board. This only reflects the board, not the actual number of CPUs or the running kernel!

    Return value

    • boolean - true if running on multiprocessor board

    6.3.14. i386

    true for all x86 compatible architectures

    Return value

    • boolean

    6.3.15. ia64

    true for all IA64 (itanium) architectures

    Return value

    • boolean

    6.3.16. is_laptop

    true if the system runs on laptop

    Return value

    • boolean - if the system is a laptop

    6.3.17. is_uml

    true if UML

    Return value

    • boolean - true if the system is UML

    6.3.18. is_xen

    true if Xen kernel is running (dom0 or domU)

    Return value

    • boolean - true if the Xen kernel is running

    6.3.19. is_xen0

    true if dom0 Xen kernel is running

    Return value

    • boolean - true if the Xen kernel is running in dom0

    See also:

    • is_xenU

    • is_xen

    6.3.20. is_xenU

    true if domU Xen kernel is running

    Return value

    • boolean - true if the Xen kernel is running in another domain than dom0

    See also:

    • is_xen0

    • is_xen

    6.3.21. mips

    true for all mips architectures (32 or 64 bit)

    Return value

    • boolean

    See also:

    • mips32

    • mips64

    6.3.22. mips32

    true for all 32bit mips architectures

    Return value

    • boolean

    See also:

    • mips

    • mips64

    6.3.23. mips64

    true for all 64bit mips architectures

    Return value

    • boolean

    See also:

    • mips

    • mips32

    6.3.24. ppc

    true for all ppc architectures (32 or 64 bit)

    Return value

    • boolean

    See also:

    • ppc32

    • ppc64

    6.3.25. ppc32

    true for all 32bit ppc architectures

    Return value

    • boolean

    See also:

    • ppc

    • ppc64

    6.3.26. ppc64

    true for all 64bit ppc architectures

    Return value

    • boolean

    See also:

    • ppc

    • ppc32

    6.3.27. s390

    true for all S/390 architectures (32 or 64 bit)

    Return value

    • boolean

    See also:

    • s390_32

    • s390_64

    6.3.28. s390_32

    true for all 32bit S/390 architectures

    Return value

    • boolean

    See also:

    • s390

    • s390_64

    6.3.29. s390_64

    true for all 64bit S/390 architectures

    Return value

    • boolean

    See also:

    • s390

    • s390_32

    6.3.30. setSMP

    Set "Arch::has_smp ()". Since Alpha doesn't reliably probe smp, 'has_smp' must be set later with this function.

    Function parameters

    • boolean is_smp

    Return value

    • void

    Example 2. 

     setSMP(true);


    6.3.31. sparc

    true for all sparc architectures (32 or 64 bit)

    Return value

    • boolean

    See also:

    • sparc32

    • sparc64

    6.3.32. sparc32

    true for all 32bit sparc architectures

    Return value

    • boolean

    See also:

    • sparc

    • sparc64

    6.3.33. sparc64

    true for all 64bit sparc architectures

    Return value

    • boolean

    See also:

    • sparc

    • sparc32

    6.3.34. x11_setup_needed

    run X11 configuration after inital boot this is false in case of: installation on iSeries, installation on S390

    Return value

    • boolean - true when the X11 configuration is needed after inital boot

    See also:

    • Installation::x11_setup_needed

    6.3.35. x86_64

    true for all x86-64 (AMD Hammer) architectures

    Return value

    • boolean

    6.4. Global Variables

    6.5. Module Requirements

    none