Re: VNOP_PAGEIN doubt
Re: VNOP_PAGEIN doubt
- Subject: Re: VNOP_PAGEIN doubt
- From: anubhav rakshit <email@hidden>
- Date: Wed, 23 Sep 2009 13:30:08 +0530
On Wed, Sep 23, 2009 at 1:17 PM, Michael Smith
<email@hidden> wrote:
On Sep 23, 2009, at 12:34 AM, anubhav rakshit wrote:
I am working on a VFS plugin.From the VNOP_PAGEIN callback is it somehow possible to know the access type for the pagein request.
For example if my pagein function is called afs_pagein() what i want to know is from the "args" is it possible to find out the access type?
What do you mean by "access type"? Do you mean the direction of the data transfer, or the protection on the resulting pages, or something else?
Yes i am asking about the direction of the data transfer.
If you are asking about the direction of the data transfer, consider also VNOP_PAGEOUT.
= Mike
afs_pagein( args)
{
if (access_type == READ)
setup_for_read();
else
setup_for_write();
return cluster_pagein()
}
Thanks
--
Anubhav Rakshit
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
This email sent to email@hidden
--
Ars longa, vita brevis, occasio praeceps, experimentum periculosum, iudicium difficile -- Hippocrates
--
Anubhav Rakshit
_______________________________________________
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