Searched refs:kn (Results 1 – 5 of 5) sorted by relevance
658 struct cgroup *cgrp = of->kn->parent->priv; in of_css()1618 void cgroup_kn_unlock(struct kernfs_node *kn) in cgroup_kn_unlock() argument1622 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_unlock()1623 cgrp = kn->priv; in cgroup_kn_unlock()1625 cgrp = kn->parent->priv; in cgroup_kn_unlock()1629 kernfs_unbreak_active_protection(kn); in cgroup_kn_unlock()1650 struct cgroup *cgroup_kn_lock_live(struct kernfs_node *kn, bool drain_offline) in cgroup_kn_lock_live() argument1654 if (kernfs_type(kn) == KERNFS_DIR) in cgroup_kn_lock_live()1655 cgrp = kn->priv; in cgroup_kn_lock_live()1657 cgrp = kn->parent->priv; in cgroup_kn_lock_live()[all …]
48 if (!cgroup_kn_lock_live(of->kn, false)) in current_css_set_read()72 cgroup_kn_unlock(of->kn); in current_css_set_read()212 cgrp = cgroup_kn_lock_live(of->kn, false); in cgroup_subsys_states_read()232 cgroup_kn_unlock(of->kn); in cgroup_subsys_states_read()260 cgrp = cgroup_kn_lock_live(of->kn, false); in cgroup_masks_read()267 cgroup_kn_unlock(of->kn); in cgroup_masks_read()
499 cgrp = cgroup_kn_lock_live(of->kn, false); in __cgroup1_procs_write()530 cgroup_kn_unlock(of->kn); in __cgroup1_procs_write()564 cgrp = cgroup_kn_lock_live(of->kn, false); in cgroup_release_agent_write()571 cgroup_kn_unlock(of->kn); in cgroup_release_agent_write()703 struct kernfs_node *kn = kernfs_node_from_dentry(dentry); in cgroupstats_build() local709 if (dentry->d_sb->s_type != &cgroup_fs_type || !kn || in cgroupstats_build()710 kernfs_type(kn) != KERNFS_DIR) in cgroupstats_build()719 cgrp = rcu_dereference(*(void __rcu __force **)&kn->priv); in cgroupstats_build()829 static int cgroup1_rename(struct kernfs_node *kn, struct kernfs_node *new_parent, in cgroup1_rename() argument832 struct cgroup *cgrp = kn->priv; in cgroup1_rename()[all …]
229 struct cgroup *cgroup_kn_lock_live(struct kernfs_node *kn, bool drain_offline);230 void cgroup_kn_unlock(struct kernfs_node *kn);263 int cgroup_rmdir(struct kernfs_node *kn);
2851 kernfs_break_active_protection(of->kn); in cpuset_write_resmask()2881 kernfs_unbreak_active_protection(of->kn); in cpuset_write_resmask()