> http://src.opensolaris.org/source/xref/onnv/onnv-gate/ > usr/src/uts/common/fs/lookup.c#lookupnameat > 194 lookuppnvp( > 195 struct pathname *pnp, /* pathname to lookup > */ > 196 struct pathname *rpnp, /* if non-NULL, > return resolved path */ > 197 int flags, /* follow symlinks */ > 198 vnode_t **dirvpp, /* ptr for parent vnode */ > 199 vnode_t **compvpp, /* ptr for entry vnode > */ > 200 vnode_t *rootvp, /* rootvp */ > 201 vnode_t *vp, /* directory to start search at > */ > 202 cred_t *cr) /* user's credential */ > t's so difficult to understand this function ... > who would like to give me a lession please... > i just want to know how we get vnode from a > pathname...
Using the source browser, look where it calls VOP_LOOKUP; that's a macro (click on it and look for the definition), that maps to fop_lookup(), which calls the filesystem-specific vop_lookup function (see sys/vnode.h). This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
