]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/sysfs.h
sysfs: crash debugging
[linux-2.6-omap-h63xx.git] / include / linux / sysfs.h
index 27bad59dae7946b7a5386cd5e5daeb2fe3ee5c4e..8ec406afb3eb1ed548bc221f6721dbe189c69f96 100644 (file)
@@ -101,6 +101,9 @@ void sysfs_remove_bin_file(struct kobject *kobj, struct bin_attribute *attr);
 
 int __must_check sysfs_create_link(struct kobject *kobj, struct kobject *target,
                                   const char *name);
+int __must_check sysfs_create_link_nowarn(struct kobject *kobj,
+                                         struct kobject *target,
+                                         const char *name);
 void sysfs_remove_link(struct kobject *kobj, const char *name);
 
 int __must_check sysfs_create_group(struct kobject *kobj,
@@ -116,6 +119,8 @@ void sysfs_remove_file_from_group(struct kobject *kobj,
 
 void sysfs_notify(struct kobject *kobj, char *dir, char *attr);
 
+void sysfs_printk_last_file(void);
+
 extern int __must_check sysfs_init(void);
 
 #else /* CONFIG_SYSFS */
@@ -180,18 +185,19 @@ static inline int sysfs_create_link(struct kobject *kobj,
        return 0;
 }
 
-static inline void sysfs_remove_link(struct kobject *kobj, const char *name)
+static inline int sysfs_create_link_nowarn(struct kobject *kobj,
+                                          struct kobject *target,
+                                          const char *name)
 {
+       return 0;
 }
 
-static inline int sysfs_create_group(struct kobject *kobj,
-                                    const struct attribute_group *grp)
+static inline void sysfs_remove_link(struct kobject *kobj, const char *name)
 {
-       return 0;
 }
 
-static inline int sysfs_update_group(struct kobject *kobj,
-                               const struct attribute_group *grp)
+static inline int sysfs_create_group(struct kobject *kobj,
+                                    const struct attribute_group *grp)
 {
        return 0;
 }
@@ -227,6 +233,10 @@ static inline int __must_check sysfs_init(void)
        return 0;
 }
 
+static inline void sysfs_printk_last_file(void)
+{
+}
+
 #endif /* CONFIG_SYSFS */
 
 #endif /* _SYSFS_H_ */