processing IOService in kext
processing IOService in kext
- Subject: processing IOService in kext
- From: email@hidden
- Date: Wed, 17 Nov 2004 11:04:37 +0100
--
Hi,
I am trying to further implement the following Apple Kernel sample.
How do I parse / filter / the IOService which is handed to me?
I have tried several options, but am getting nowhere.
I need to know the name of the class (open, create, etc) and the
specific params for each call
client->serviceMatching( "open", table );
Note: this is a kext with KERNEL = 1, so not all api's are accessible.
Thanks, DM
======= Apple Code =======
void com_apple_dts_driver_SampleFilterScheme::read(IOService* client ,
UInt64 byteStart,
IOMemoryDescriptor* buffer,
IOStorageCompletion completion)
{
// Read data from the storage object at the specified byte
offset into the
// specified buffer, asynchronously. When the read completes, the caller
// will be notified via the specified completion action.
//
// The buffer will be retained for the duration of the read.
//
// For simple partition schemes, the default behavior is to simply pass the
// read through to the provider media. More complex partition schemes such
// as RAID will need to do extra processing here.
//
getProvider()->read(this, byteStart, buffer, completion);
}
_______________________________________________
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