I have a resource manager that accepts POSIX write() msgs. When I get some data from this message I would like the resource manager to reply to the original sender and then process the data that was received.
This is the ideal situation… and the way that it worked when I sent the data via a custom message, however I’m converting the resource manager over to using write(). I’m guessing that I am unable to MsgReply directly from my io_write() function… however if it is possible could someone tell me how!!?
To get around this I am attempting to have the io_write function open up the resource manager and send a simple custom message indicating that data is available at which point the thread processing that message would process the data, and it would allow io_write to return/Reply however the resmgr library does it.
This however doesn’t work. Open() returns with errno == 2 “No such file or directory” (i’ve already made sure that I’m attempting to open the proper file)
So really I have 2 questions… is there a way that I can reply directly from my io_write function (most ideal situation)
or barring that is there some way that I can send a message from within my resource manager to myself?
I do a way around all of this if neither of these will work, but I’d rather not use my last approach (not explained here).