Go to the documentation of this file.
15 #include <linux/compiler.h>
16 #include <linux/errno.h>
17 #include <linux/list.h>
29 #ifdef CONFIG_DEBUG_LOCK_ALLOC
30 bool ignore_lockdep:1;
46 #ifdef CONFIG_DEBUG_LOCK_ALLOC
47 #define sysfs_attr_init(attr) \
49 static struct lock_class_key __key; \
51 (attr)->key = &__key; \
54 #define sysfs_attr_init(attr) do {} while(0)
71 #define __ATTR(_name,_mode,_show,_store) { \
72 .attr = {.name = __stringify(_name), .mode = _mode }, \
77 #define __ATTR_RO(_name) { \
78 .attr = { .name = __stringify(_name), .mode = 0444 }, \
79 .show = _name##_show, \
82 #define __ATTR_NULL { .attr = { .name = NULL } }
84 #ifdef CONFIG_DEBUG_LOCK_ALLOC
85 #define __ATTR_IGNORE_LOCKDEP(_name, _mode, _show, _store) { \
86 .attr = {.name = __stringify(_name), .mode = _mode, \
87 .ignore_lockdep = true }, \
92 #define __ATTR_IGNORE_LOCKDEP __ATTR
95 #define attr_name(_attr) (_attr).attr.name
122 #define sysfs_bin_attr_init(bin_attr) sysfs_attr_init(&(bin_attr)->attr)
141 struct kobject *new_parent_kobj);
165 const char *old_name,
const char *new_name);
189 const unsigned char *
name);
218 struct kobject *new_parent_kobj)
280 const char *old_name,
const char *new_name)
339 const unsigned char *
name)