Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[newbie] device interface or device file path



First hello list ;-)
This is my first post in this list, please to join the community !

I am trying to port an linux application that accesses a USB storage device thanx to a

cat "foo" > /proc/bar

In the linux code, there is no more than this line to put the binary data in the usb device !!
However, it seems that under mac os x, i have to go trough a device recognition procedure
before i can access this device.

I've been reading the IOKit documentation and it is pretty useful.
http://developer.apple.com/documentation/DeviceDrivers/Conceptual/AccessingHardware/index.html#//apple_ref/doc/uid/TP30000376

I have to say that it is the first time i am coding at such a low level. I am much more of a cocoa programer.
Anyway, the thing is that i manage to create the matching dictionary, examine the objects inside the dictionary and find the one i want.

then come this page in the documentation :
"Putting it all together ....."

There they speak about getting a device interface or a device file.

My questions are :
- when i plug my usb device, is there a /dev/foobar automatically created ?
- if no, how do i create it ? the code listing they give is just to create a string with some parameters from the object you found thanx to the dictionary.
- if i want to use the device interface, does <x-tad-bigger>IOCreatePlugInInterfaceForService still exist? i don't find anywhere!

Thanx
julien</x-tad-bigger>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Usb mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/usb/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.