Rev 6934 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6934 | Rev 6936 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | bool ignore_lockdep:1; |
29 | bool ignore_lockdep:1; |
30 | struct lock_class_key *key; |
30 | struct lock_class_key *key; |
31 | struct lock_class_key skey; |
31 | struct lock_class_key skey; |
32 | #endif |
32 | #endif |
33 | }; |
33 | }; |
- | 34 | struct attribute_group { |
|
- | 35 | const char *name; |
|
- | 36 | umode_t (*is_visible)(struct kobject *, |
|
- | 37 | struct attribute *, int); |
|
- | 38 | umode_t (*is_bin_visible)(struct kobject *, |
|
- | 39 | struct bin_attribute *, int); |
|
- | 40 | struct attribute **attrs; |
|
- | 41 | struct bin_attribute **bin_attrs; |
|
- | 42 | }; |
|
34 | #ifdef CONFIG_SYSFS |
43 | #ifdef CONFIG_SYSFS |
Line 35... | Line 44... | ||
35 | 44 | ||
36 | int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns); |
45 | int __must_check sysfs_create_dir_ns(struct kobject *kobj, const void *ns); |
37 | void sysfs_remove_dir(struct kobject *kobj); |
46 | void sysfs_remove_dir(struct kobject *kobj); |
Line 214... | Line 223... | ||
214 | static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, |
223 | static inline void sysfs_delete_link(struct kobject *k, struct kobject *t, |
215 | const char *name) |
224 | const char *name) |
216 | { |
225 | { |
217 | } |
226 | } |
Line -... | Line 227... | ||
- | 227 | ||
- | 228 | static inline int sysfs_create_group(struct kobject *kobj, |
|
- | 229 | const struct attribute_group *grp) |
|
- | 230 | { |
|
- | 231 | return 0; |
|
- | 232 | } |
|
- | 233 | ||
- | 234 | static inline int sysfs_create_groups(struct kobject *kobj, |
|
- | 235 | const struct attribute_group **groups) |
|
- | 236 | { |
|
- | 237 | return 0; |
|
- | 238 | } |
|
- | 239 | ||
- | 240 | static inline int sysfs_update_group(struct kobject *kobj, |
|
- | 241 | const struct attribute_group *grp) |
|
- | 242 | { |
|
- | 243 | return 0; |
|
- | 244 | } |
|
- | 245 | ||
- | 246 | static inline void sysfs_remove_group(struct kobject *kobj, |
|
- | 247 | const struct attribute_group *grp) |
|
- | 248 | { |
|
- | 249 | } |
|
- | 250 | ||
- | 251 | static inline void sysfs_remove_groups(struct kobject *kobj, |
|
- | 252 | const struct attribute_group **groups) |
|
- | 253 | { |
|
Line 218... | Line 254... | ||
218 | 254 | } |
|
219 | 255 | ||
220 | static inline int sysfs_add_file_to_group(struct kobject *kobj, |
256 | static inline int sysfs_add_file_to_group(struct kobject *kobj, |
221 | const struct attribute *attr, const char *group) |
257 | const struct attribute *attr, const char *group) |
Line 226... | Line 262... | ||
226 | static inline void sysfs_remove_file_from_group(struct kobject *kobj, |
262 | static inline void sysfs_remove_file_from_group(struct kobject *kobj, |
227 | const struct attribute *attr, const char *group) |
263 | const struct attribute *attr, const char *group) |
228 | { |
264 | { |
229 | } |
265 | } |
Line -... | Line 266... | ||
- | 266 | ||
- | 267 | static inline int sysfs_merge_group(struct kobject *kobj, |
|
- | 268 | const struct attribute_group *grp) |
|
- | 269 | { |
|
- | 270 | return 0; |
|
- | 271 | } |
|
- | 272 | ||
- | 273 | static inline void sysfs_unmerge_group(struct kobject *kobj, |
|
- | 274 | const struct attribute_group *grp) |
|
- | 275 | { |
|
- | 276 | } |
|
230 | 277 | ||
231 | static inline int sysfs_add_link_to_group(struct kobject *kobj, |
278 | static inline int sysfs_add_link_to_group(struct kobject *kobj, |
232 | const char *group_name, struct kobject *target, |
279 | const char *group_name, struct kobject *target, |
233 | const char *link_name) |
280 | const char *link_name) |
234 | { |
281 | { |