site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AcVXHe7Qr/YEzPfIQA2qJQyuhjganA== 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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
Pezeshgi, Shahriar