Question on Mass Storage driver IOMedia Objects
Question on Mass Storage driver IOMedia Objects
- Subject: Question on Mass Storage driver IOMedia Objects
- From: Yogesh P <email@hidden>
- Date: 06 Oct 2005 19:43:54 +0530
Hi Folks,
I have implemented a Mass storage driver using IOStorage Class.
My driver succuessfully gets loaded and expose the IOMedia objects by
matching on the ContenHint property.
As I load the driver, I noticed that the write() call in the driver gets
called after some specific time intervals. Is it that a correct
behaviour of my driver???
Does the write() routine in my driver is for all the media objects that
are exposed by my driver or for a specific media???
If yes,then how should I implement a write() routine, so that it will
write only on specific media object exposed by my driver????
Is it that I have to match the MediaName by calling media->getName()
API???Does this API written me the media object or only the name of the
particular media???
If this API gives me the actual media object then i will redirect the
write() call by calling this API and write on that particular media
object.
If this API only gives me the media name associated with the media
object then I will not able to redirect my write() call for that media.
Is that my understanding is right or wrong???
My aim is to write the data only on specific media object when my driver
calls the write() routine.
Thanks in advance.Looking for your valuable suggestions.
Thanks,
Yogesh
_______________________________________________
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