Blame view

fs/sysfs/sysfs.h 916 Bytes
6d66f5cd2   Tejun Heo   sysfs: add copyri...
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   Tejun Heo   sysfs, kernfs: mo...
10
11
  #ifndef __SYSFS_INTERNAL_H
  #define __SYSFS_INTERNAL_H
ddd29ec65   David P. Quigley   sysfs: Add labeli...
12

ae6621b07   Tejun Heo   sysfs, kernfs: mo...
13
  #include <linux/sysfs.h>
fb6896da3   Tejun Heo   sysfs: restructur...
14

59f690156   Tejun Heo   sysfs: clean up h...
15
16
17
  /*
   * mount.c
   */
324a56e16   Tejun Heo   kernfs: s/sysfs_d...
18
  extern struct kernfs_node *sysfs_root_kn;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
19

59f690156   Tejun Heo   sysfs: clean up h...
20
21
22
  /*
   * dir.c
   */
0cae60f91   Tejun Heo   sysfs: rename sys...
23
  extern spinlock_t sysfs_symlink_target_lock;
59f690156   Tejun Heo   sysfs: clean up h...
24

324a56e16   Tejun Heo   kernfs: s/sysfs_d...
25
  void sysfs_warn_dup(struct kernfs_node *parent, const char *name);
59f690156   Tejun Heo   sysfs: clean up h...
26

59f690156   Tejun Heo   sysfs: clean up h...
27
  /*
59f690156   Tejun Heo   sysfs: clean up h...
28
29
   * file.c
   */
324a56e16   Tejun Heo   kernfs: s/sysfs_d...
30
  int sysfs_add_file(struct kernfs_node *parent,
a7dc66dfb   Tejun Heo   sysfs, kernfs: re...
31
  		   const struct attribute *attr, bool is_bin);
324a56e16   Tejun Heo   kernfs: s/sysfs_d...
32
  int sysfs_add_file_mode_ns(struct kernfs_node *parent,
a7dc66dfb   Tejun Heo   sysfs, kernfs: re...
33
  			   const struct attribute *attr, bool is_bin,
58292cbe6   Tejun Heo   sysfs: make attr ...
34
  			   umode_t amode, const void *ns);
73d971462   Tejun Heo   sysfs: copy bin m...
35

59f690156   Tejun Heo   sysfs: clean up h...
36
  /*
59f690156   Tejun Heo   sysfs: clean up h...
37
38
   * symlink.c
   */
324a56e16   Tejun Heo   kernfs: s/sysfs_d...
39
  int sysfs_create_link_sd(struct kernfs_node *kn, struct kobject *target,
0bb8f3d6a   Rafael J. Wysocki   sysfs: Functions ...
40
  			 const char *name);
ae6621b07   Tejun Heo   sysfs, kernfs: mo...
41
42
  
  #endif	/* __SYSFS_INTERNAL_H */