I have taken the standard devc-ser8250 and added a thread to handler the
resource managing,
while the main thread does all the interrupt processing. This works fine.
The problem comes
when I added a third thread that implements the “Sample code for handling
_IO_READ messages”.
This sample code conflicts with the io-char library. It should be possible
to have another resource.
Do I have to re-write the io-char library and use the “Multi-threaded device
resource manager example”
as the basis for a new io-char library?
I have found the conflict. When defining your io_*() functions make sure
you alter the name function.
For example instead of
io_funcs.read = io_read;
use
io_funcs.read = my_io_read;
I have taken the standard devc-ser8250 and added a thread to handler the
resource managing,
while the main thread does all the interrupt processing. This works fine.
The problem comes
when I added a third thread that implements the “Sample code for handling
_IO_READ messages”.
This sample code conflicts with the io-char library. It should be
possible
to have another resource.
Do I have to re-write the io-char library and use the “Multi-threaded
device
resource manager example”
as the basis for a new io-char library?