ioctl
ioctl
- Subject: ioctl
- From: devdrvr <email@hidden>
- Date: Wed, 24 Apr 2002 13:30:23 -0700
- Organization: FW-Driver-Net-SW
There is pretty standard C ioctl call we need to make to access and get info
back from connected ATA disk drives. After you do an open the call takes a
string of /dev/... for the exact drive you want. We can't seem to get this
call to come back with anything but an error. Is anyone else using it or can
attest to it working? Or is there sample code I can look at that shows how
to properly address devices with the call? We've got the right Darwin
headers etc.
We've done code under Linux that does the same thing and it works. So
between the unices (and in Darwin commands and libs) this call should be made
a lot.
And yes we are working on using IOKit calls instead. The util we are coming
out with will have an app under MacOS X. But it also has some disk commands
for admins to use. I'd like to keep this latter code the same across
platforms if possible is why I ask (unless there is a god reason to deviate).
Thanks,
--Perry
mailto:email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.