I've noticed, that operations related to a given filesystem are
handled via an array of function pointers named `v_op'.
I am now wondering, what's the best way to reference this array. I'd
You don't. The array is private to the kernel.
like to use the `getxattr()' function within a kernel extension. As
There is no KPI provided for this.
I'm unable to use v_op, I've tried to find a "general" function for
`getxattr()'. After a bit of exploration, I've found :
`vn_getxattr()' which seems the right thing to use. This is how I've
vn_getxattr is not KPI.
As a general rule, if you think you want to initiate operations on
files, file attributes, pathnames etc. from the kernel you have made
a design error and need to stop and re-evaluate what you are doing.
In almost every case, what you are trying to do should be handled in
user space.
= Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden