MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
阅读:2348回复:1

Can not get the io_service_t object representing the device driver.

楼主#
更多 发布于:2003-07-11 17:43
Dear,All
I want to send scsi command to my usb mass storage device from user space on Mac OS X . I modified the code from \"simpleUserClient\" . It works well with my single Lun mass storage device . But I can not work on the muti luns storage device. I can not get the io_service_t object representing the device driver . Did any one tell me why ? Thanks you in advance.



ClassToMatch = IOServiceMatching(kMyDriversIOKitClassName);

if (ClassToMatch)
{
    serviceObject = IOServiceGetMatchingService(masterPort,ClassToMatch);

   // Can not get serviceObject  if the USB Mass Storage Device has muti luns.
  
Chen
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-07-14 10:06
自己解决了!原来驱动有问题(MUTI_LUN没注册服务).
Chen
游客

返回顶部