YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Global Functions

Info:

File: modules/Arch.ycp Module: yast2 Summary: Architecture, board and bios data Authors: Klaus Kaempf Flags: Stable

global architecture () -> string

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

Return value:
architecture
global i386 () -> boolean

true for all x86 compatible architectures

global sparc32 () -> boolean

true for all 32bit sparc architectures

See
sparc sparc64
global sparc64 () -> boolean

true for all 64bit sparc architectures

See
sparc sparc32
global sparc () -> boolean

true for all sparc architectures (32 or 64 bit)

See
sparc32 sparc64
global mips32 () -> boolean

true for all 32bit mips architectures

See
mips mips64
global mips64 () -> boolean

true for all 64bit mips architectures

See
mips mips32
global mips () -> boolean

true for all mips architectures (32 or 64 bit)

See
mips32 mips64
global ppc32 () -> boolean

true for all 32bit ppc architectures

See
ppc ppc64
global ppc64 () -> boolean

true for all 64bit ppc architectures

See
ppc ppc32
global ppc () -> boolean

true for all ppc architectures (32 or 64 bit)

See
ppc32 ppc64
global alpha () -> boolean

true for all alpha architectures

global s390_32 () -> boolean

true for all 32bit S/390 architectures

See
s390 s390_64
global s390_64 () -> boolean

true for all 64bit S/390 architectures

See
s390 s390_32
global s390 () -> boolean

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

See
s390_32 s390_64
global ia64 () -> boolean

true for all IA64 (itanium) architectures

global x86_64 () -> boolean

true for all x86-64 (AMD Hammer) architectures

global arch_short () -> string

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

Return value:
arch_short
global board_mac () -> boolean

true for all PPC "MacRISC" boards

global board_mac_new () -> boolean

true for all "NewWorld" PowerMacs

global board_mac_old () -> boolean

true for all "OldWorld" powermacs

global board_chrp () -> boolean

true for all "CHRP" ppc boards

global board_iseries () -> boolean

true for all "iSeries" ppc boards

global board_prep () -> boolean

true for all "PReP" ppc boards

global board_pegasos () -> boolean

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

global board_wintel () -> boolean

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

global has_pcmcia () -> boolean

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

Return value:
true if the system supports PCMCIA
See
is_laptop
global is_laptop () -> boolean

true if the system runs on laptop

Return value:
if the system is a laptop
global is_uml () -> boolean

This function is deprecated.

true if UML

Return value:
true if the system is UML
global is_xen () -> boolean

true if Xen kernel is running (dom0 or domU)

Return value:
true if the Xen kernel is running
global is_xen0 () -> boolean

true if dom0 Xen kernel is running

Return value:
true if the Xen kernel is running in dom0
See
is_xenU is_xen
global is_xenU () -> boolean

true if domU Xen kernel is running

Return value:
true if the Xen kernel is running in another domain than dom0
See
is_xen0 is_xen
global is_kvm () -> boolean

true if KVM is running

Return value:
true if we are running on KVM hypervisor
global setSMP (boolean is_smp) -> void

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

Parameters:
is_smp true if has_smp should be true
Example
 setSMP(true);
global has_smp () -> boolean

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

Return value:
true if running on multiprocessor board
global x11_setup_needed () -> boolean

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

Return value:
true when the X11 configuration is needed after inital boot
See
Installation::x11_setup_needed