Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ironhide707

macrumors newbie
Original poster
Sep 23, 2010
1
0
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:

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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.