VNOP_GETATTR
VNOP_GETATTR
- Subject: VNOP_GETATTR
- From: "Pezeshgi, Shahriar" <email@hidden>
- Date: Thu, 12 May 2005 14:10:52 -0400
- Thread-topic: VNOP_GETATTR
Hi
I'm trying to read a file size from my KEXT under Tiger but I'm getting
0 only, is there anyone with more experience on this?
struct vnode *vnode;
struct vnode_attr vattr;
If (VNOP_GETATTR (vnode, &vattr, vfs_context_create(NULL) == 0)
{
size = vattr.va_size;
}
Shahriar
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden