Lines Matching refs:kn_to
101 * kernfs_path_from_node_locked - find a pseudo-absolute path to @kn_to,
104 * @kn_to: kernfs node to which path is needed
109 * [1] when @kn_from is an ancestor of @kn_to at some level
111 * kn_to: /n1/n2/n3/n4/n5
115 * ancestor between @kn_from and @kn_to.
117 * kn_to: /n1/n2/n5
121 * kn_to: /n1/n2/n3 [depth=3]
124 * [3] when @kn_to is NULL result will be "(null)"
130 static int kernfs_path_from_node_locked(struct kernfs_node *kn_to,
139 if (!kn_to)
143 kn_from = kernfs_root(kn_to)->kn;
145 if (kn_from == kn_to)
151 common = kernfs_common_ancestor(kn_from, kn_to);
155 depth_to = kernfs_depth(common, kn_to);
166 for (kn = kn_to, j = 0; j < i; j++)