Re: Using VFS operations for a given node
Re: Using VFS operations for a given node
- Subject: Re: Using VFS operations for a given node
- From: Michael Smith <email@hidden>
- Date: Tue, 24 Jul 2007 22:42:11 -0700
On Jul 24, 2007, at 11:54 AM, email@hidden wrote:
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:
This email sent to email@hidden