• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/sysfs/

Lines Matching defs:sysfs_dirent

16 /* type-specific structures for sysfs_dirent->s_* union members */
20 struct sysfs_dirent *children;
24 struct sysfs_dirent *target_sd;
44 * sysfs_dirent - the building block of sysfs hierarchy. Each and
45 * every sysfs node is represented by single sysfs_dirent.
47 * As long as s_count reference is held, the sysfs_dirent itself is
51 struct sysfs_dirent {
57 struct sysfs_dirent *s_parent;
58 struct sysfs_dirent *s_sibling;
92 static inline unsigned int sysfs_type(struct sysfs_dirent *sd)
101 static inline enum kobj_ns_type sysfs_ns_type(struct sysfs_dirent *sd)
124 struct sysfs_dirent *parent_sd;
125 struct sysfs_dirent *removed;
141 extern struct sysfs_dirent sysfs_root;
153 struct dentry *sysfs_get_dentry(struct sysfs_dirent *sd);
154 struct sysfs_dirent *sysfs_get_active(struct sysfs_dirent *sd);
155 void sysfs_put_active(struct sysfs_dirent *sd);
157 struct sysfs_dirent *parent_sd);
158 int __sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd);
159 int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd);
160 void sysfs_remove_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd);
163 struct sysfs_dirent *sysfs_find_dirent(struct sysfs_dirent *parent_sd,
166 struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd,
169 struct sysfs_dirent *sysfs_new_dirent(const char *name, umode_t mode, int type);
171 void release_sysfs_dirent(struct sysfs_dirent *sd);
174 struct sysfs_dirent **p_sd);
175 void sysfs_remove_subdir(struct sysfs_dirent *sd);
177 int sysfs_rename(struct sysfs_dirent *sd,
178 struct sysfs_dirent *new_parent_sd, const void *ns, const char *new_name);
180 static inline struct sysfs_dirent *__sysfs_get(struct sysfs_dirent *sd)
190 static inline void __sysfs_put(struct sysfs_dirent *sd)
200 struct inode *sysfs_get_inode(struct super_block *sb, struct sysfs_dirent *sd);
202 int sysfs_sd_setattr(struct sysfs_dirent *sd, struct iattr *iattr);
208 int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, const char *name);
216 int sysfs_add_file(struct sysfs_dirent *dir_sd,
219 int sysfs_add_file_mode(struct sysfs_dirent *dir_sd,
225 void unmap_bin_file(struct sysfs_dirent *attr_sd);