• 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 refs:sysfs_dirent

34  *	sysfs_link_sibling - link sysfs_dirent into sibling list
35 * @sd: sysfs_dirent of interest
43 static void sysfs_link_sibling(struct sysfs_dirent *sd)
45 struct sysfs_dirent *parent_sd = sd->s_parent;
46 struct sysfs_dirent **pos;
63 * sysfs_unlink_sibling - unlink sysfs_dirent from sibling list
64 * @sd: sysfs_dirent of interest
72 static void sysfs_unlink_sibling(struct sysfs_dirent *sd)
74 struct sysfs_dirent **pos;
87 * sysfs_get_active - get an active reference to sysfs_dirent
88 * @sd: sysfs_dirent to get an active reference to
96 struct sysfs_dirent *sysfs_get_active(struct sysfs_dirent *sd)
121 * sysfs_put_active - put an active reference to sysfs_dirent
122 * @sd: sysfs_dirent to put an active reference to
127 void sysfs_put_active(struct sysfs_dirent *sd)
148 * sysfs_deactivate - deactivate sysfs_dirent
149 * @sd: sysfs_dirent to deactivate
153 static void sysfs_deactivate(struct sysfs_dirent *sd)
208 void release_sysfs_dirent(struct sysfs_dirent * sd)
210 struct sysfs_dirent *parent_sd;
236 struct sysfs_dirent *sd = dentry->d_fsdata;
242 struct sysfs_dirent *sd = dentry->d_fsdata;
290 struct sysfs_dirent * sd = dentry->d_fsdata;
302 struct sysfs_dirent *sysfs_new_dirent(const char *name, umode_t mode, int type)
305 struct sysfs_dirent *sd;
337 * sysfs_addrm_start - prepare for sysfs_dirent add/remove
339 * @parent_sd: parent sysfs_dirent
342 * remove sysfs_dirent under @parent_sd. This function acquires
351 struct sysfs_dirent *parent_sd)
360 * __sysfs_add_one - add sysfs_dirent to parent without warning
362 * @sd: sysfs_dirent to be added
379 int __sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd)
400 static char *sysfs_pathname(struct sysfs_dirent *sd, char *path)
411 * sysfs_add_one - add sysfs_dirent to parent
413 * @sd: sysfs_dirent to be added
430 int sysfs_add_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd)
449 * sysfs_remove_one - remove sysfs_dirent from parent
451 * @sd: sysfs_dirent to be removed
463 void sysfs_remove_one(struct sysfs_addrm_cxt *acxt, struct sysfs_dirent *sd)
484 * sysfs_addrm_finish - finish up sysfs_dirent add/remove
487 * Finish up sysfs_dirent add/remove. Resources acquired by
501 struct sysfs_dirent *sd = acxt->removed;
513 * sysfs_find_dirent - find sysfs_dirent with the given name
514 * @parent_sd: sysfs_dirent to search under
517 * Look for sysfs_dirent with name @name under @parent_sd.
523 * Pointer to sysfs_dirent if found, NULL if not.
525 struct sysfs_dirent *sysfs_find_dirent(struct sysfs_dirent *parent_sd,
529 struct sysfs_dirent *sd;
541 * sysfs_get_dirent - find and get sysfs_dirent with the given name
542 * @parent_sd: sysfs_dirent to search under
545 * Look for sysfs_dirent with name @name under @parent_sd and get
552 * Pointer to sysfs_dirent if found, NULL if not.
554 struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd,
558 struct sysfs_dirent *sd;
569 static int create_dir(struct kobject *kobj, struct sysfs_dirent *parent_sd,
571 struct sysfs_dirent **p_sd)
575 struct sysfs_dirent *sd;
601 struct sysfs_dirent **p_sd)
639 struct sysfs_dirent *parent_sd, *sd;
665 struct sysfs_dirent *parent_sd = parent->d_fsdata;
666 struct sysfs_dirent *sd;
715 static void remove_dir(struct sysfs_dirent *sd)
724 void sysfs_remove_subdir(struct sysfs_dirent *sd)
730 static void __sysfs_remove_dir(struct sysfs_dirent *dir_sd)
733 struct sysfs_dirent **pos;
742 struct sysfs_dirent *sd = *pos;
765 struct sysfs_dirent *sd = kobj->sd;
774 int sysfs_rename(struct sysfs_dirent *sd,
775 struct sysfs_dirent *new_parent_sd, const void *new_ns,
792 /* rename sysfs_dirent */
822 struct sysfs_dirent *parent_sd = kobj->sd->s_parent;
833 struct sysfs_dirent *sd = kobj->sd;
834 struct sysfs_dirent *new_parent_sd;
847 static inline unsigned char dt_type(struct sysfs_dirent *sd)
858 static struct sysfs_dirent *sysfs_dir_pos(const void *ns,
859 struct sysfs_dirent *parent_sd, ino_t ino, struct sysfs_dirent *pos)
879 static struct sysfs_dirent *sysfs_dir_next_pos(const void *ns,
880 struct sysfs_dirent *parent_sd, ino_t ino, struct sysfs_dirent *pos)
893 struct sysfs_dirent * parent_sd = dentry->d_fsdata;
894 struct sysfs_dirent *pos = filp->private_data;