[Mono-osx] IOKit Enumeration

Geoff Norton gnorton at novell.com
Sat Apr 19 10:06:49 EDT 2008


Josh,

On 15-Apr-08, at 10:49 AM, Joshua Perry wrote:

>
> The current SerialPort chooses between two ISerialStream
> implementations SerialPortStream and WinSerialStream.
> SerialPortStream is implemented by P/Invoking into MonoPosixHelper
> functions like serial_read and serial_write.  WinSerialStream is
> implemented by P/Invoking the Win32 API serial port and IO functions.
> Outside of enumerating IOKit objects to find the port /dev/ nodes, I
> believe that OSX is compatible with standard posix callsl though I'm
> not happy with the current Posix stream as Async operations are not
> implemented.  I would like to implement the async functionality and,
> from the look of things, moving the serial specific functions into io-
> layer would be the right thing to do.
>

Great, let us know if there are any questions / problems.

> In XplatUI.cs are you talking about the call to uname to check for
> "Darwin"?
>

Yep

-g



More information about the Mono-osx mailing list