Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - M index
The Linux kernel configuration item CONFIG_MEMORY_NOTIFIER_ERROR_INJECT
:
CONFIG_MEMORY_HOTPLUG && CONFIG_NOTIFIER_ERROR_INJECTION
memory-notifier-error-inject
This option provides the ability to inject artificial errors to memory hotplug notifier chain callbacks. It is controlled through debugfs interface under /sys/kernel/debug/notifier-error-inject/memory
If the notifier call chain should be failed with some events notified, write the error code to "actions/<notifier event>/error".
Example: Inject memory hotplug offline error (-12 == -ENOMEM)
# cd /sys/kernel/debug/notifier-error-inject/memory # echo -12 > actions/MEM_GOING_OFFLINE/error # echo offline > /sys/devices/system/memory/memoryXXX/state bash: echo: write error: Cannot allocate memory
To compile this code as a module, choose M here: the module will be called memory-notifier-error-inject.
If unsure, say N.
Raw data from LKDDb:
lkddb module memory-notifier-error-inject CONFIG_MEMORY_NOTIFIER_ERROR_INJECT : lib/Kconfig.debug : "Memory hotplug notifier error injection module" # in 3.6–3.19, 4.0–4.20, 5.0–5.19, 6.0–6.12, 6.13-rc+HEAD
This page is automaticly generated with free (libre, open) software lkddb(see lkddb-sources).
The data is retrived from:
Popular queries:
Navigation: Linux Kernel Driver DataBase - web LKDDB: main index - M index
Automatically generated (in year 2024). See also LKDDb sources on GitLab