Go to the documentation of this file.
14 #include <linux/rbtree.h>
58 #ifdef CONFIG_DEBUG_LOCK_ALLOC
59 struct lockdep_map dep_map;
86 #define SD_DEACTIVATED_BIAS INT_MIN
88 #define SYSFS_TYPE_MASK 0x00ff
89 #define SYSFS_DIR 0x0001
90 #define SYSFS_KOBJ_ATTR 0x0002
91 #define SYSFS_KOBJ_BIN_ATTR 0x0004
92 #define SYSFS_KOBJ_LINK 0x0008
93 #define SYSFS_COPY_NAME (SYSFS_DIR | SYSFS_KOBJ_LINK)
94 #define SYSFS_ACTIVE_REF (SYSFS_KOBJ_ATTR | SYSFS_KOBJ_BIN_ATTR)
97 #define SYSFS_NS_TYPE_MASK 0xf00
98 #define SYSFS_NS_TYPE_SHIFT 8
100 #define SYSFS_FLAG_MASK ~(SYSFS_NS_TYPE_MASK|SYSFS_TYPE_MASK)
101 #define SYSFS_FLAG_REMOVED 0x02000
117 #ifdef CONFIG_DEBUG_LOCK_ALLOC
118 #define sysfs_dirent_init_lockdep(sd) \
120 struct attribute *attr = sd->s_attr.attr; \
121 struct lock_class_key *key = attr->key; \
125 lockdep_init_map(&sd->dep_map, "s_active", key, 0); \
128 #define sysfs_dirent_init_lockdep(sd) do {} while(0)
151 #define sysfs_info(SB) ((struct sysfs_super_info *)(SB->s_fs_info))
177 const unsigned char *
name);
180 const unsigned char *
name);
190 struct sysfs_dirent *new_parent_sd,
const void *
ns,
const char *new_name);
200 #define sysfs_get(sd) __sysfs_get(sd)
207 #define sysfs_put(sd) __sysfs_put(sd)