Home
last modified time | relevance | path

Searched refs:parent_sd (Results 1 – 7 of 7) sorted by relevance

/linux-2.6.39/fs/sysfs/
Dsymlink.c27 struct sysfs_dirent *parent_sd = NULL; in sysfs_do_create_link() local
37 parent_sd = &sysfs_root; in sysfs_do_create_link()
39 parent_sd = kobj->sd; in sysfs_do_create_link()
42 if (!parent_sd) in sysfs_do_create_link()
62 ns_type = sysfs_ns_type(parent_sd); in sysfs_do_create_link()
68 sysfs_addrm_start(&acxt, parent_sd); in sysfs_do_create_link()
80 parent_sd->s_name, in sysfs_do_create_link()
153 struct sysfs_dirent *parent_sd = NULL; in sysfs_remove_link() local
156 parent_sd = &sysfs_root; in sysfs_remove_link()
158 parent_sd = kobj->sd; in sysfs_remove_link()
[all …]
Ddir.c45 struct sysfs_dirent *parent_sd = sd->s_parent; in sysfs_link_sibling() local
54 for (pos = &parent_sd->s_dir.children; *pos; pos = &(*pos)->s_sibling) { in sysfs_link_sibling()
210 struct sysfs_dirent *parent_sd; in release_sysfs_dirent() local
216 parent_sd = sd->s_parent; in release_sysfs_dirent()
229 sd = parent_sd; in release_sysfs_dirent()
355 struct sysfs_dirent *parent_sd) in sysfs_addrm_start() argument
358 acxt->parent_sd = parent_sd; in sysfs_addrm_start()
387 if (sysfs_find_dirent(acxt->parent_sd, sd->s_ns, sd->s_name)) in __sysfs_add_one()
390 sd->s_parent = sysfs_get(acxt->parent_sd); in __sysfs_add_one()
395 ps_iattr = acxt->parent_sd->s_iattr; in __sysfs_add_one()
[all …]
Dsysfs.h125 struct sysfs_dirent *parent_sd; member
158 struct sysfs_dirent *parent_sd);
164 struct sysfs_dirent *sysfs_find_dirent(struct sysfs_dirent *parent_sd,
167 struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd,
/linux-2.6.39/fs/configfs/
Ddir.c110 static void configfs_set_dir_dirent_depth(struct configfs_dirent *parent_sd, in configfs_set_dir_dirent_depth() argument
113 int parent_depth = parent_sd->s_depth; in configfs_set_dir_dirent_depth()
153 static void configfs_set_dir_dirent_depth(struct configfs_dirent *parent_sd, in configfs_set_dir_dirent_depth() argument
173 static struct configfs_dirent *configfs_new_dirent(struct configfs_dirent *parent_sd, in configfs_new_dirent() argument
189 if (parent_sd->s_type & CONFIGFS_USET_DROPPING) { in configfs_new_dirent()
194 list_add(&sd->s_sibling, &parent_sd->s_children); in configfs_new_dirent()
207 static int configfs_dirent_exists(struct configfs_dirent *parent_sd, in configfs_dirent_exists() argument
212 list_for_each_entry(sd, &parent_sd->s_children, s_sibling) { in configfs_dirent_exists()
226 int configfs_make_dirent(struct configfs_dirent * parent_sd, in configfs_make_dirent() argument
232 sd = configfs_new_dirent(parent_sd, element, type); in configfs_make_dirent()
[all …]
Dfile.c319 struct configfs_dirent * parent_sd = dir->d_fsdata; in configfs_add_file() local
324 error = configfs_make_dirent(parent_sd, NULL, (void *) attr, mode, type); in configfs_add_file()
Dinode.c267 struct configfs_dirent * parent_sd = dir->d_fsdata; in configfs_hash_and_remove() local
274 list_for_each_entry(sd, &parent_sd->s_children, s_sibling) { in configfs_hash_and_remove()
/linux-2.6.39/include/linux/
Dsysfs.h174 struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd,
328 struct sysfs_dirent *sysfs_get_dirent(struct sysfs_dirent *parent_sd, in sysfs_get_dirent() argument