Re: VNOP_PAGEIN doubt
Re: VNOP_PAGEIN doubt
- Subject: Re: VNOP_PAGEIN doubt
- From: Michael Smith <email@hidden>
- Date: Wed, 23 Sep 2009 00:47:54 -0700
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?
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
-- Ars longa, vita brevis, occasio praeceps, experimentum periculosum, iudicium difficile -- Hippocrates
|
_______________________________________________
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