Accessing vnode operations
Accessing vnode operations
- Subject: Accessing vnode operations
- From: "Jernej Azarija" <email@hidden>
- Date: Wed, 25 Jul 2007 11:23:33 +0200
- Thread-topic: Accessing vnode operations
Title: Accessing vnode operations
Hello!
I'm using Kauth KAUTH_SCOPE_FILEOP to hook some file operations. The hook function is then supplied with a pointer to a vnode structure related to the given file operation. I'm now wondering, how can I use the v_op vector to call a specifc VFS function (concretely - getxattr() ).
I've seen many options - using the macro VOPCALL, calling vn_getxattr() , but none of these works (I don't see how to use VOPCALL properly as I'm missing the second argument (undefined symbol), same problem with undefined symbols goes to vn_getxattr() ).
Is somebody so kind to give me a pointer on how to use the vnode v_op vector in order to call the named function?
Ps. I've noticed that many kernel related things are poorly documented, so I'm wondering... is there any good book I could order to gain more insights about Mac OS kernel development?
_______________________________________________
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