Nick,
In general, the IORegistry is where this kind of information is kept.
Serial ports created by IOSerialFamily are described by objects called
"IOSerialBSDClient" which include a property "IOSerialBSDClientType" that
has a value "IORS232SerialStream". When you find these objects you can
create a list of available serial ports on your system.
You could modify this registry search to look for the name of the driver
object that is responsible for the serial ports. For example Keyspan serial
ports are descended from a driver object called 'USA28Xdriver'. Probably
other vendor's drivers do something similar.
Hope this helps.
Eric Welch
Keyspan Engineering
> From: Nick Sayer <email@hidden>
> Date: Wed, 01 Oct 2003 16:29:23 -0700
> To: email@hidden
> Subject: A rather specific newbie question
>
> Hi. This may not be the exact correct list to ask, but it is about a USB
> device, so I thought I'd try here.
>
> I have an application that talks to a device built around a
> usb-to-serial adapter. The device has the USB-to-serial thing embedded,
> so if there were a way to know which kext was behind a particular
> /dev/usbserial-* device, I'd be able to filter out any serial ports that
> I know could not possibly be the device I want.
>
> Is there an easy way to query a /dev/ node to determine its kext or,
> alternatively, ask the kext which devices it controls?
>
> Thanks in advance.
> _______________________________________________
> usb mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
usb mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/usb
Do not post admin requests to the list. They will be ignored.