Need help in developing an IOKIT device driver

Discussion in 'Mac Programming' started by ironhide707, Sep 23, 2010.

  1. ironhide707 macrumors newbie

    Sep 23, 2010
    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.

Share This Page