Tejun Heo | 6d66f5c | 2007-09-20 17:31:38 +0900 | [diff] [blame] | 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 <teheo@suse.de> | ||||
7 | * | ||||
8 | * This file is released under the GPLv2. | ||||
9 | */ | ||||
10 | |||||
Tejun Heo | ae6621b | 2013-11-28 14:54:31 -0500 | [diff] [blame] | 11 | #ifndef __SYSFS_INTERNAL_H |
12 | #define __SYSFS_INTERNAL_H | ||||
David P. Quigley | ddd29ec | 2009-09-09 14:25:37 -0400 | [diff] [blame] | 13 | |
Tejun Heo | ae6621b | 2013-11-28 14:54:31 -0500 | [diff] [blame] | 14 | #include <linux/sysfs.h> |
Tejun Heo | fb6896d | 2007-06-14 04:27:24 +0900 | [diff] [blame] | 15 | |
Tejun Heo | 59f6901 | 2007-09-20 16:05:10 +0900 | [diff] [blame] | 16 | /* |
17 | * mount.c | ||||
18 | */ | ||||
Tejun Heo | 324a56e | 2013-12-11 14:11:53 -0500 | [diff] [blame] | 19 | extern struct kernfs_node *sysfs_root_kn; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
Tejun Heo | 59f6901 | 2007-09-20 16:05:10 +0900 | [diff] [blame] | 21 | /* |
22 | * dir.c | ||||
23 | */ | ||||
Tejun Heo | 0cae60f | 2013-10-30 10:28:36 -0400 | [diff] [blame] | 24 | extern spinlock_t sysfs_symlink_target_lock; |
Tejun Heo | 59f6901 | 2007-09-20 16:05:10 +0900 | [diff] [blame] | 25 | |
Tejun Heo | 324a56e | 2013-12-11 14:11:53 -0500 | [diff] [blame] | 26 | void sysfs_warn_dup(struct kernfs_node *parent, const char *name); |
Tejun Heo | 59f6901 | 2007-09-20 16:05:10 +0900 | [diff] [blame] | 27 | |
Tejun Heo | 59f6901 | 2007-09-20 16:05:10 +0900 | [diff] [blame] | 28 | /* |
Tejun Heo | 59f6901 | 2007-09-20 16:05:10 +0900 | [diff] [blame] | 29 | * file.c |
30 | */ | ||||
Tejun Heo | 324a56e | 2013-12-11 14:11:53 -0500 | [diff] [blame] | 31 | int sysfs_add_file(struct kernfs_node *parent, |
Tejun Heo | a7dc66d | 2013-11-28 14:54:23 -0500 | [diff] [blame] | 32 | const struct attribute *attr, bool is_bin); |
Tejun Heo | 324a56e | 2013-12-11 14:11:53 -0500 | [diff] [blame] | 33 | int sysfs_add_file_mode_ns(struct kernfs_node *parent, |
Tejun Heo | a7dc66d | 2013-11-28 14:54:23 -0500 | [diff] [blame] | 34 | const struct attribute *attr, bool is_bin, |
Tejun Heo | 58292cbe | 2013-09-11 22:29:04 -0400 | [diff] [blame] | 35 | umode_t amode, const void *ns); |
Tejun Heo | 73d9714 | 2013-10-01 17:42:07 -0400 | [diff] [blame] | 36 | |
Tejun Heo | 59f6901 | 2007-09-20 16:05:10 +0900 | [diff] [blame] | 37 | /* |
Tejun Heo | 59f6901 | 2007-09-20 16:05:10 +0900 | [diff] [blame] | 38 | * symlink.c |
39 | */ | ||||
Tejun Heo | 324a56e | 2013-12-11 14:11:53 -0500 | [diff] [blame] | 40 | int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, |
Rafael J. Wysocki | 0bb8f3d | 2013-01-25 21:51:13 +0100 | [diff] [blame] | 41 | const char *name); |
Tejun Heo | ae6621b | 2013-11-28 14:54:31 -0500 | [diff] [blame] | 42 | |
43 | #endif /* __SYSFS_INTERNAL_H */ |