]>
Commit | Line | Data |
---|---|---|
6d66f5cd TH |
1 | /* |
2 | * fs/sysfs/sysfs.h - sysfs internal header file | |
3 | * | |
4 | * Copyright (c) 2001-3 Patrick Mochel | |
5 | * Copyright (c) 2007 SUSE Linux Products GmbH | |
6 | * Copyright (c) 2007 Tejun Heo <[email protected]> | |
7 | * | |
8 | * This file is released under the GPLv2. | |
9 | */ | |
10 | ||
ae6621b0 TH |
11 | #ifndef __SYSFS_INTERNAL_H |
12 | #define __SYSFS_INTERNAL_H | |
ddd29ec6 | 13 | |
ae6621b0 | 14 | #include <linux/sysfs.h> |
fb6896da | 15 | |
59f69015 TH |
16 | /* |
17 | * mount.c | |
18 | */ | |
324a56e1 | 19 | extern struct kernfs_node *sysfs_root_kn; |
1da177e4 | 20 | |
59f69015 TH |
21 | /* |
22 | * dir.c | |
23 | */ | |
0cae60f9 | 24 | extern spinlock_t sysfs_symlink_target_lock; |
59f69015 | 25 | |
324a56e1 | 26 | void sysfs_warn_dup(struct kernfs_node *parent, const char *name); |
59f69015 | 27 | |
59f69015 TH |
28 | /* |
29 | * file.c | |
30 | */ | |
324a56e1 | 31 | int sysfs_add_file(struct kernfs_node *parent, |
a7dc66df | 32 | const struct attribute *attr, bool is_bin); |
324a56e1 | 33 | int sysfs_add_file_mode_ns(struct kernfs_node *parent, |
a7dc66df | 34 | const struct attribute *attr, bool is_bin, |
58292cbe | 35 | umode_t amode, const void *ns); |
73d97146 | 36 | |
59f69015 TH |
37 | /* |
38 | * symlink.c | |
39 | */ | |
324a56e1 | 40 | int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, |
0bb8f3d6 | 41 | const char *name); |
ae6621b0 TH |
42 | |
43 | #endif /* __SYSFS_INTERNAL_H */ |