Navigation: Linux Kernel Driver DataBase - web LKDDB: Main index - N index
The Linux kernel configuration item CONFIG_NETDEV_NOTIFIER_ERROR_INJECT
:
CONFIG_NET && CONFIG_NOTIFIER_ERROR_INJECTION
netdev-notifier-error-inject
This option provides the ability to inject artificial errors to netdevice notifier chain callbacks. It is controlled through debugfs interface /sys/kernel/debug/notifier-error-inject/netdev
If the notifier call chain should be failed with some events notified, write the error code to "actions/<notifier event>/error".
Example: Inject netdevice mtu change error (-22 = -EINVAL)
# cd /sys/kernel/debug/notifier-error-inject/netdev # echo -22 > actions/NETDEV_CHANGEMTU/error # ip link set eth0 mtu 1024 RTNETLINK answers: Invalid argument
To compile this code as a module, choose M here: the module will be called netdev-notifier-error-inject.
If unsure, say N.
Raw data from LKDDb:
lkddb module netdev-notifier-error-inject CONFIG_NETDEV_NOTIFIER_ERROR_INJECT : lib/Kconfig.debug : "Netdev notifier error injection module" # in 4.5–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 - N index
Automatically generated (in year 2024). See also LKDDb sources on GitLab