125. NetworkModules

Hardware config manipulation (/etc/sysconfig/hardware/hwcfg-*)

125.1. Summary of Module Globals

List of Global Functions

  • ChangeM - Commit data to Modules[name]

  • Export - Export data

  • HwUp - Call HwUp for hardware that is not handled by hotplug (#44626) Probably obsoleted by the code in Write

  • Import - Import data

  • List - Get modules of the given type

  • Modified - Were the modules changed?

  • Read - Read modules from files

  • ValidCharsHwcfg - #46803: forbid "/" (filename), maybe also "-" (separator) "_" (escape)

  • Write - Write modules to files And also do hwdown before and hwup after, on changed ones (#44794)

List of Global Variables

  • Alias - Alias means Driver here (think of modules.conf)

  • Current - Current module information

125.2. Global Functions

125.2.1. ChangeM

Commit data to Modules[name]

Function parameters

  • string name

Return value

  • boolean

125.2.2. Export

Export data

Function parameters

  • string devregex

Return value

  • map<string,map> - dumped settings (later acceptable by Import())

125.2.3. HwUp

Call HwUp for hardware that is not handled by hotplug (#44626) Probably obsoleted by the code in Write

Return value

  • boolean

125.2.4. Import

Import data

Function parameters

  • string devregex

  • map<string,map> modules

Return value

  • boolean - true on success

125.2.5. List

Get modules of the given type

Function parameters

  • string devregex

Return value

  • list - of found modules

125.2.6. Modified

Were the modules changed?

Function parameters

  • string devregex

Return value

  • boolean - true if modified

125.2.7. Read

Read modules from files

Return value

  • boolean - true if sucess

125.2.8. ValidCharsHwcfg

#46803: forbid "/" (filename), maybe also "-" (separator) "_" (escape)

Return value

  • string

125.2.9. Write

Write modules to files And also do hwdown before and hwup after, on changed ones (#44794)

Function parameters

  • string devregex

Return value

  • boolean - true if success

Example 22. 

 NetworkModule::Write("eth|tr");


125.3. Global Variables

125.3.1. Alias

Alias means Driver here (think of modules.conf)

125.3.2. Current

Current module information

125.4. Module Requirements

125.4.1. Module Imports

  • Arch
  • Map
  • NetworkDevices
  • String

125.4.2. Module Includes