RE: argument defs for vnode scope callbacks
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AcVVocsWffbBWacXQjOsM7QPGtyM8gAAjfHA Thread-topic: argument defs for vnode scope callbacks Nicolas I'm trying to use vnode_getattr but I can't load the driver. It says vnode_getattr not found, can you tell me what did you put in CFOSBundle? Shahriar -----Original Message----- Sent: Tuesday, May 10, 2005 4:49 PM To: darwin-kernel@lists.apple.com Subject: argument defs for vnode scope callbacks Hello ! thanks to mike, I've started to get going with my vnode scope handler. I've installed handlers for file and vnode scope listening. kauth.h has some definitions for the file scope, but is really zen about the vnode part (ie empty). It says "Prototype for vnode_authorize is in vnode.h", but I cannot find a list of actions and their related arguments. Is it documented ? I've tried with mike's following suggestion : int vnode_callback(kauth_cred_t cred, void *my_private_data_p, kauth_action_t action, uintptr_t arg0, uintptr_t arg1, uintptr_t arg2, uintptr_t arg3) { vfs_context_t ctx = (vfs_context_t )arg0; vnode_t vp = (vnode_t)arg1; vnode_t dvp = (vnode_t)arg2; int *errorp = (int *)arg3; I then tried to get some attributes from the vp vnode, but I got instant-KP out of it : struct vnode_attr vap; int err = vnode_getattr(vp, &vap, ctx); any suggestions are welcome. _______________________________________________ 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/shahriar.pezeshgi%4 0analog.com This email sent to shahriar.pezeshgi@analog.com _______________________________________________ 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