aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/configfs.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/include/linux/configfs.h b/include/linux/configfs.h
index f7300d023dbe..f8165c129ccb 100644
--- a/include/linux/configfs.h
+++ b/include/linux/configfs.h
@@ -259,7 +259,24 @@ void configfs_unregister_default_group(struct config_group *group);
259 259
260/* These functions can sleep and can alloc with GFP_KERNEL */ 260/* These functions can sleep and can alloc with GFP_KERNEL */
261/* WARNING: These cannot be called underneath configfs callbacks!! */ 261/* WARNING: These cannot be called underneath configfs callbacks!! */
262int configfs_depend_item(struct configfs_subsystem *subsys, struct config_item *target); 262int configfs_depend_item(struct configfs_subsystem *subsys,
263void configfs_undepend_item(struct configfs_subsystem *subsys, struct config_item *target); 263 struct config_item *target);
264void configfs_undepend_item(struct config_item *target);
265
266/*
267 * These functions can sleep and can alloc with GFP_KERNEL
268 * NOTE: These should be called only underneath configfs callbacks.
269 * NOTE: First parameter is a caller's subsystem, not target's.
270 * WARNING: These cannot be called on newly created item
271 * (in make_group()/make_item() callback)
272 */
273int configfs_depend_item_unlocked(struct configfs_subsystem *caller_subsys,
274 struct config_item *target);
275
276
277static inline void configfs_undepend_item_unlocked(struct config_item *target)
278{
279 configfs_undepend_item(target);
280}
264 281
265#endif /* _CONFIGFS_H_ */ 282#endif /* _CONFIGFS_H_ */