Analyse and explore linux
Component NETDEV_NOTIFIER_ERROR_INJECT

Component Type: kbuild config

Description: Netdev notifier error injection module

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

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

Other views: file explorer

Generated by PFA software prototype