6. Arch

Architecture, board and bios data

6.1. 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.2. Global Functions

    6.2.1. alpha

    true for all alpha architectures

    Return value

    • boolean

    6.2.2. arch_short

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

    Return value

    • string - arch_short

    6.2.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.2.4. board_chrp

    true for all "CHRP" ppc boards

    Return value

    • boolean

    6.2.5. board_iseries

    true for all "iSeries" ppc boards

    Return value

    • boolean

    6.2.6. board_mac

    true for all PPC "MacRISC" boards

    Return value

    • boolean

    6.2.7. board_mac_new

    true for all "NewWorld" PowerMacs

    Return value

    • boolean

    6.2.8. board_mac_old

    true for all "OldWorld" powermacs

    Return value

    • boolean

    6.2.9. board_pegasos

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

    Return value

    • boolean

    6.2.10. board_prep

    true for all "PReP" ppc boards

    Return value

    • boolean

    6.2.11. board_wintel

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

    Return value

    • boolean

    6.2.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

    6.2.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.2.14. i386

    true for all x86 compatible architectures

    Return value

    • boolean

    6.2.15. ia64

    true for all IA64 (itanium) architectures

    Return value

    • boolean

    6.2.16. is_laptop

    true if the system runs on laptop

    Return value

    • boolean - if the system is a laptop

    6.2.17. is_uml

    true if UML

    Return value

    • boolean - true if the system is UML

    6.2.18. is_xen

    true if Xen kernel is running (dom0 or domU)

    Return value

    • boolean - true if the Xen kernel is running

    6.2.19. is_xen0

    true if dom0 Xen kernel is running

    Return value

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

    6.2.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

    6.2.21. mips

    true for all mips architectures (32 or 64 bit)

    Return value

    • boolean

    6.2.22. mips32

    true for all 32bit mips architectures

    Return value

    • boolean

    6.2.23. mips64

    true for all 64bit mips architectures

    Return value

    • boolean

    6.2.24. ppc

    true for all ppc architectures (32 or 64 bit)

    Return value

    • boolean

    6.2.25. ppc32

    true for all 32bit ppc architectures

    Return value

    • boolean

    6.2.26. ppc64

    true for all 64bit ppc architectures

    Return value

    • boolean

    6.2.27. s390

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

    Return value

    • boolean

    6.2.28. s390_32

    true for all 32bit S/390 architectures

    Return value

    • boolean

    6.2.29. s390_64

    true for all 64bit S/390 architectures

    Return value

    • boolean

    6.2.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.2.31. sparc

    true for all sparc architectures (32 or 64 bit)

    Return value

    • boolean

    6.2.32. sparc32

    true for all 32bit sparc architectures

    Return value

    • boolean

    6.2.33. sparc64

    true for all 64bit sparc architectures

    Return value

    • boolean

    6.2.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

    6.2.35. x86_64

    true for all x86-64 (AMD Hammer) architectures

    Return value

    • boolean

    6.3. Global Variables

    6.4. Module Requirements

    none