diff options
author | Jiri Kosina <jkosina@suse.cz> | 2012-08-27 08:04:24 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-08-27 08:05:17 -0700 |
commit | 66a61fc0b2c3475f26f65b5f29ed5945b8efbf9e (patch) | |
tree | 28ebaaee56786cd9199e0e5802d166474d30d1e3 /lib/notifier-error-inject.h | |
parent | 8db089d1b08209c04cd130e49fa4796b5513ce7f (diff) | |
parent | d37e44969e60dc652fdbaf4397d5436e07c967af (diff) |
Merge branch 'master' into upstream
Sync with Linus' tree so that we don't have build falures
due to Quanta 3001 ID reshuffling.
Diffstat (limited to 'lib/notifier-error-inject.h')
-rw-r--r-- | lib/notifier-error-inject.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/notifier-error-inject.h b/lib/notifier-error-inject.h new file mode 100644 index 00000000000..99b3b6fc470 --- /dev/null +++ b/lib/notifier-error-inject.h @@ -0,0 +1,24 @@ +#include <linux/atomic.h> +#include <linux/debugfs.h> +#include <linux/notifier.h> + +struct notifier_err_inject_action { + unsigned long val; + int error; + const char *name; +}; + +#define NOTIFIER_ERR_INJECT_ACTION(action) \ + .name = #action, .val = (action), + +struct notifier_err_inject { + struct notifier_block nb; + struct notifier_err_inject_action actions[]; + /* The last slot must be terminated with zero sentinel */ +}; + +extern struct dentry *notifier_err_inject_dir; + +extern struct dentry *notifier_err_inject_init(const char *name, + struct dentry *parent, struct notifier_err_inject *err_inject, + int priority); |