• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
ioctl Call From My Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ioctl Call From My Code


  • Subject: ioctl Call From My Code
  • From: Perry Gregg <email@hidden>
  • Date: Wed, 22 May 2002 18:25:04 -0700 (PDT)

Doing a project writing a hard disk util for OS X. I
need to issue a ioctl(drive, SCSI_IOCTL_SEND_COMMAND
/* 1 */, &tBuf /* parameter block set up for an
INQUIRY to the drive */) and I always get a 0xFF
returned as an error returned for status. I get a
string returned that says: inappropriate ioctl
command. But I'm trying to issue a standard inquiry
so having trouble seeing how this could be so. I've
tried other parameter variations and none work. What
gives?

ioctl must be a popular call that other folks are
making. Does anyone know how to issue an ioctl to a
SCSI or ATA drive and get a valid result for any of
the possible commands. To get to this point I have
validly opened on a Blue G3 the SCSI drive through the
path /dev/disk1.

And yes I will use IOKit to do the same thing when I
write the associated app that goes along with the
commands that this particular company will ship. For
now I need to make a bunch of code that uses ioctls
work like it does under other unices.

Thanks,
--Perry


=====
01 (530) 400-5692 [Davis, CA USA]
mailto:email@hidden
http://www.devdrvr.net/PerryCard.jpg
ftp://www.devdrvr.net/
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com
_______________________________________________
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.

  • Prev by Date: Re: Fielding another question
  • Next by Date: Re: ! HELP ME!!! I DON'T WANT TO LEARN CARBON!!!
  • Previous by thread: Re: Fielding another question
  • Next by thread: Re: validateMenuItem: issues
  • Index(es):
    • Date
    • Thread