Mailing Lists: Apple Mailing Lists

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

Re: raw device file in /dev for USB ports?




On Oct 13, 2005, at 03:49 , Johannes Hoffstadt wrote:

Hi,

applications like gutenprint (escputil)
use a raw device file to access e. g.
USB printers. On Linux, this would be
something like /dev/usb/lp0.

Under Mac OS X (10.3 at least) there are
no such files in the /dev folder.

Is there a way to create such files
with mknod? (The man page refers to a
/dev/MAKEDEV script which is not present
on my system)

This may get better treatment on the USB mailing list (cf <http:// lists.apple.com>); that's where the USB developers tend to congregate.


FWIW, in order for MAKEDEV to help, the driver has to obey a number of rules; typically, in Darwin/Mac OS X, an IOKit device handler needs a "BSD shim" to translate from the Unix '/dev/' semantics to those used by IOKit. If the USB support is pure IOKit, it has no hooks back to the '/dev/' interfaces, so there may be no way to just "MAKEDEV" the problem away.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
Experience is what you get
  when you don't get what you want.
--------



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

This email sent to email@hidden
References: 
 >raw device file in /dev for USB ports? (From: Johannes Hoffstadt <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.