Lines Matching refs:kn_to
105 * kernfs_path_from_node_locked - find a pseudo-absolute path to @kn_to,
108 * @kn_to: kernfs node to which path is needed
113 * [1] when @kn_from is an ancestor of @kn_to at some level
115 * kn_to: /n1/n2/n3/n4/n5
119 * ancestor between @kn_from and @kn_to.
121 * kn_to: /n1/n2/n5
125 * kn_to: /n1/n2/n3 [depth=3]
128 * [3] when @kn_to is %NULL result will be "(null)"
134 static int kernfs_path_from_node_locked(struct kernfs_node *kn_to,
143 if (!kn_to)
147 kn_from = kernfs_root(kn_to)->kn;
149 if (kn_from == kn_to)
152 common = kernfs_common_ancestor(kn_from, kn_to);
156 depth_to = kernfs_depth(common, kn_to);
167 for (kn = kn_to, j = 0; j < i; j++)