View Full Version : Need help in developing an IOKIT device driver

Sep 24, 2010, 01:04 AM
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:

# include <IOKit/storage/IOBlockStorageDevice.h>
# include <IOKIt/storage/IOBlockStorageDriver.h>
# include <IOKit/storage/IOMedia.h>

class scrpt {

public:void init(void)


virtual IOMedia * instantiateMediaObject(
UInt64 base=0,
UInt64 byteSize=4,
UInt32 blockSize=512,
char *Device1);

int main (int argc, char** argv)


scrpt Mysc = new scrpt() ;


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.