2011/7/4 Pavel Machek [off-list ref]:
quoted
+ =A0 =A0 for (action =3D enb->actions; action->name; action++) {
+ =A0 =A0 =A0 =A0 =A0 =A0 struct dentry *file =3D debugfs_create_int(act=
ion->name, mode,
quoted
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 enb->dir, &action->error);
quoted
+
+ =A0 =A0 =A0 =A0 =A0 =A0 if (!file) {
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 debugfs_remove_recursive(enb->=
dir);
quoted
+ =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 return -ENOMEM;
+ =A0 =A0 =A0 =A0 =A0 =A0 }
Few lines how this work would be welcome...?
OK, I'll add a comment like below.
/*
* Create debugfs r/w file containing action->error. If notifier call
* chain is called with action->val, it will fail with the error code
*/