PDA

View Full Version : Device aceesing problem




poileafrire
May 9, 2006, 09:59 AM
Hi all,

I'm new on Mac. I have to develop a user-application using specific device.
I have some Linux C code.
I just need to find the path (/dev/??) of these devices.
Any software ? Any tuto ?

Thanks for your anser.



yellow
May 9, 2006, 11:01 AM
http://developer.apple.com is a good palce to start (free to sign up)..

mrichmon
May 9, 2006, 03:41 PM
Hi all,

I'm new on Mac. I have to develop a user-application using specific device.
I have some Linux C code.
I just need to find the path (/dev/??) of these devices.
Any software ? Any tuto ?


There are significant differences between linux and OS X device paths, major and minor device numbers and even some of the sematics of interacting with the devices represented by /dev files.

The simple answer to finding the path is to cd into /dev and have a look for the dev file you need. The more realistic answer is that you need to understand how /dev "files" work and the mechanics of working with these devices.

Good luck with you application, but based on your questions I suspect there is a massive knowledge gap between where you are now and what you need to know to build this application.

poileafrire
May 10, 2006, 02:57 AM
Yes, sure. There is a real big gap ... I used to work on Linux, but it's the first time i use a Mac ... and i start by creating a kind of driver.

Not easy to change my abits.

Thanks for your ansers.