Version:  2.0.40 2.2.26 2.4.37 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10

Linux/lib/notifier-error-inject.h

  1 #include <linux/atomic.h>
  2 #include <linux/debugfs.h>
  3 #include <linux/notifier.h>
  4 
  5 struct notifier_err_inject_action {
  6         unsigned long val;
  7         int error;
  8         const char *name;
  9 };
 10 
 11 #define NOTIFIER_ERR_INJECT_ACTION(action)      \
 12         .name = #action, .val = (action),
 13 
 14 struct notifier_err_inject {
 15         struct notifier_block nb;
 16         struct notifier_err_inject_action actions[];
 17         /* The last slot must be terminated with zero sentinel */
 18 };
 19 
 20 extern struct dentry *notifier_err_inject_dir;
 21 
 22 extern struct dentry *notifier_err_inject_init(const char *name,
 23                 struct dentry *parent, struct notifier_err_inject *err_inject,
 24                 int priority);
 25 

This page was automatically generated by LXR 0.3.1 (source).  •  Linux is a registered trademark of Linus Torvalds  •  Contact us