Hey all,
I am new to mac os x device driver programming. I want to develop a Virtual drive in mac os x using IOKiT framework. I have also developed a program which is this:
Now i dont know whether or not IOBlockStorageDriver is the correct header for building a virtual drive. So can anyone shed some light on this at what header file in IOkit framework should i use to accomplish this.
I am new to mac os x device driver programming. I want to develop a Virtual drive in mac os x using IOKiT framework. I have also developed a program which is this:
Code:
# include <IOKit/storage/IOBlockStorageDevice.h>
# include <IOKIt/storage/IOBlockStorageDriver.h>
# include <IOKit/storage/IOMedia.h>
class scrpt {
public:void init(void)
{
protected:
virtual IOMedia * instantiateMediaObject(
UInt64 base=0,
UInt64 byteSize=4,
UInt32 blockSize=512,
char *Device1);
}
};
int main (int argc, char** argv)
{
scrpt Mysc = new scrpt() ;
Mysc.init();
}
Now i dont know whether or not IOBlockStorageDriver is the correct header for building a virtual drive. So can anyone shed some light on this at what header file in IOkit framework should i use to accomplish this.