Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - C index
The Linux kernel configuration item CONFIG_CPU_NOTIFIER_ERROR_INJECT
:
CONFIG_HOTPLUG_CPU && CONFIG_NOTIFIER_ERROR_INJECTION
cpu-notifier-error-inject
This option provides a kernel module that can be used to test the error handling of the cpu notifiers by injecting artificial errors to CPU notifier chain callbacks. It is controlled through debugfs interface under /sys/kernel/debug/notifier-error-inject/cpu
If the notifier call chain should be failed with some events notified, write the error code to "actions/<notifier event>/error".
Example: Inject CPU offline error (-1 == -EPERM)
# cd /sys/kernel/debug/notifier-error-inject/cpu # echo -1 > actions/CPU_DOWN_PREPARE/error # echo 0 > /sys/devices/system/cpu/cpu1/online bash: echo: write error: Operation not permitted
To compile this code as a module, choose M here: the module will be called cpu-notifier-error-inject.
If unsure, say N.
Raw data from LKDDb:
lkddb module cpu-notifier-error-inject CONFIG_CPU_NOTIFIER_ERROR_INJECT : lib/Kconfig.debug : "CPU notifier error injection module" # in 2.6.35–2.6.39, 3.0–3.19, 4.0–4.9
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 - C index
Automatically generated (in year 2025). See also LKDDb sources on GitLab