|
Prev: Related array(s)
Next: Discussion: What is the best way to count all set bits in a LARGE unsigned char array(no memory limit)?
From: honiewelle on 28 Dec 2007 12:35 Hi, I am trying to make a small utility which can zero fill a hard drive. I have done it with PIO mode but it takes a lot of time doing it. Now, I am trying to use UDMA mode of the hard drive, but I don't know where to start. I really appreciate if you can give me some guides on doing it. Thanks, Honiewelle
From: Jack Klein on 28 Dec 2007 22:11
On Fri, 28 Dec 2007 09:35:26 -0800 (PST), honiewelle(a)gmail.com wrote in alt.comp.lang.learn.c-c++: > Hi, > > I am trying to make a small utility which can zero fill a hard drive. > I have done it with PIO mode but it takes a lot of time doing it. > > Now, I am trying to use UDMA mode of the hard drive, but I don't know > where to start. > > I really appreciate if you can give me some guides on doing it. > > > Thanks, > > Honiewelle Sorry, but you are asking in the wrong place. The C and C++ languages do not directly define access to hardware of any kind. All input and output operations are defined in terms of logical streams, FILE *streams in either language, and iostreams in C++. It is up to the underlying operating system to connect them to actual devices. If you want to access hardware devices directly, even if you want to do so from a program written mainly in C or C++, you need very platform specific extensions. So you need to ask in a group that supports programming for your particular platform, such as news:comp.os.ms-windows.programmer.win32 if you work with Windows, or one of the comp.os.linux.development.* groups for that operating system, or an appropriate one for whatever other operating system you use. -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://c-faq.com/ comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html |