Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - P index
The Linux kernel configuration item CONFIG_PM_NOTIFIER_ERROR_INJECT
:
( CONFIG_PM && CONFIG_NOTIFIER_ERROR_INJECTION ) && ( CONFIG_PM_DEBUG )
pm-notifier-error-inject
This option provides the ability to inject artificial errors to PM notifier chain callbacks. It is controlled through debugfs interface /sys/kernel/debug/notifier-error-inject/pm
If the notifier call chain should be failed with some events notified, write the error code to "actions/<notifier event>/error".
Example: Inject PM suspend error (-12 = -ENOMEM)
# cd /sys/kernel/debug/notifier-error-inject/pm/ # echo -12 > actions/PM_SUSPEND_PREPARE/error # echo mem > /sys/power/state bash: echo: write error: Cannot allocate memory
To compile this code as a module, choose M here: the module will be called pm-notifier-error-inject.
If unsure, say N.
Raw data from LKDDb:
lkddb module pm-notifier-error-inject CONFIG_PM_NOTIFIER_ERROR_INJECT : lib/Kconfig.debug : "PM notifier error injection module" # in 3.6–3.19, 4.0–4.20, 5.0–5.19, 6.0–6.12
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 - P index
Automatically generated (in year 2024). See also LKDDb sources on GitLab