/* * namei(at)?_simple_* - the simple cases of namei, with no struct * nameidata involved. * * namei_simple_kernel takes a kernel-space path as the first argument. * namei_simple_user takes a user-space path as the first argument. * The nameiat_simple_* variants handle relative path using the given * directory vnode instead of current directory. * * A namei call can be converted to namei_simple_* if: * - the second arg to NDINIT is LOOKUP; * - it does not need the parent vnode, nd.ni_dvp; * - the only flags it uses are (NO)FOLLOW and TRYEMULROOT; * - it does not do anything else gross with the contents of nd. */