Analyse and explore linux
Component PM_NOTIFIER_ERROR_INJECT

Component Type: kbuild config

Description: PM notifier error injection module

More info: 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.

Build project: Kconfig (Linux kconfig) (Path: Kconfig )

Other views: file explorer

Generated by PFA software prototype