Skip navigation.
Home
The QNX Community Portal

View topic - data sent from io-char to the driver.

data sent from io-char to the driver.

For discussion of realtime and/or embedded programming.

data sent from io-char to the driver.

Postby rahil » Wed Jun 24, 2009 2:21 pm

Hi everybody,

I have a question regarding the serial driver devc-ser8250. When two applications say App1 & App2 are trying to write onto two different ports /dev/ser1 & /dev/ser2 respectively, at the same time, How the _IO_WRITE Message of both this two processes are handled?

How the data is sent to the driver by the IO-CHAR Library?
rahil
Active Member
 
Posts: 75
Joined: Wed Feb 11, 2009 12:13 pm
Location: India

RE: data sent from io-char to the driver.

Postby maschoen » Wed Jun 24, 2009 6:09 pm

Both messages will cause a thread to execute in the driver. Since they are dealing with different ports there is no contention. If you have multiple processors, both threads could execute simultaneously.

Data is sent to the driver using message passing. The IO-CHAR Library has cover functions that send the messages using the MsgSend() kernel call. The first few bytes of the message are a code telling the driver what the messages is requesting.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 3 guests