Device aceesing problem

Discussion in 'Mac Programming' started by poileafrire, May 9, 2006.

  1. macrumors newbie

    May 9, 2006
    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.
  2. Moderator emeritus


    Oct 21, 2003
    Portland, OR
  3. macrumors 6502a

    Jun 17, 2003
    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.
  4. thread starter macrumors newbie

    May 9, 2006
    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.

Share This Page