configfs: Allow ->make_item() and ->make_group() to return detailed errors.
[firefly-linux-kernel-4.4.55.git] / include / linux / configfs.h
index 3ae65b1bf90fd891b32538390c103f12632560fd..d62c19ff041ccb64905558f1d634b2d202c968ac 100644 (file)
@@ -148,7 +148,8 @@ struct configfs_attribute {
  * items.  If the item is a group, it may support mkdir(2).
  * Groups supply one of make_group() and make_item().  If the
  * group supports make_group(), one can create group children.  If it
- * supports make_item(), one can create config_item children.  If it has
+ * supports make_item(), one can create config_item children.  make_group()
+ * and make_item() return ERR_PTR() on errors.  If it has
  * default_groups on group->default_groups, it has automatically created
  * group children.  default_groups may coexist alongsize make_group() or
  * make_item(), but if the group wishes to have only default_groups