Lines Matching defs:kn_from
106 * where kn_from is treated as root of the path.
107 * @kn_from: kernfs node which should be treated as root for the path
113 * [1] when @kn_from is an ancestor of @kn_to at some level
114 * kn_from: /n1/n2/n3
118 * [2] when @kn_from is on a different hierarchy and we need to find common
119 * ancestor between @kn_from and @kn_to.
120 * kn_from: /n1/n2/n3/n4
124 * kn_from: /n1/n2/n3/n4/n5 [depth=5]
135 struct kernfs_node *kn_from,
146 if (!kn_from)
147 kn_from = kernfs_root(kn_to)->kn;
149 if (kn_from == kn_to)
152 common = kernfs_common_ancestor(kn_from, kn_to);
157 depth_from = kernfs_depth(common, kn_from);