In message <[EMAIL PROTECTED]>,"Amit Dang" writes:
>My confusion is related to typecasting of "struct vnode **" to "struct
>vcache **".

take a look at struct vcache in src/afs/afs.h.  you will notice that
struct vnode is the first member of the struct vache.  this means a
struct vcache contains the struct vnode so you can just cast between
the these.  however for some platforms, its a pointer instead of the
vnode itself.  there are some macros that you should use to convert
the struct vcache to a vnode, but they arent used everywhere.
_______________________________________________
OpenAFS-devel mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-devel

Reply via email to