Blame view
fs/sysfs/sysfs.h
916 Bytes
6d66f5cd2
|
1 2 3 4 5 6 7 8 9 |
/* * fs/sysfs/sysfs.h - sysfs internal header file * * Copyright (c) 2001-3 Patrick Mochel * Copyright (c) 2007 SUSE Linux Products GmbH * Copyright (c) 2007 Tejun Heo <teheo@suse.de> * * This file is released under the GPLv2. */ |
ae6621b07
|
10 11 |
#ifndef __SYSFS_INTERNAL_H #define __SYSFS_INTERNAL_H |
ddd29ec65
|
12 |
|
ae6621b07
|
13 |
#include <linux/sysfs.h> |
fb6896da3
|
14 |
|
59f690156
|
15 16 17 |
/* * mount.c */ |
324a56e16
|
18 |
extern struct kernfs_node *sysfs_root_kn; |
1da177e4c
|
19 |
|
59f690156
|
20 21 22 |
/* * dir.c */ |
0cae60f91
|
23 |
extern spinlock_t sysfs_symlink_target_lock; |
59f690156
|
24 |
|
324a56e16
|
25 |
void sysfs_warn_dup(struct kernfs_node *parent, const char *name); |
59f690156
|
26 |
|
59f690156
|
27 |
/* |
59f690156
|
28 29 |
* file.c */ |
324a56e16
|
30 |
int sysfs_add_file(struct kernfs_node *parent, |
a7dc66dfb
|
31 |
const struct attribute *attr, bool is_bin); |
324a56e16
|
32 |
int sysfs_add_file_mode_ns(struct kernfs_node *parent, |
a7dc66dfb
|
33 |
const struct attribute *attr, bool is_bin, |
58292cbe6
|
34 |
umode_t amode, const void *ns); |
73d971462
|
35 |
|
59f690156
|
36 |
/* |
59f690156
|
37 38 |
* symlink.c */ |
324a56e16
|
39 |
int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target, |
0bb8f3d6a
|
40 |
const char *name); |
ae6621b07
|
41 42 |
#endif /* __SYSFS_INTERNAL_H */ |