We just started developing with qnx. Now we are trying to write a
resource manager. For this we have to sources of information. The
and the Book about QNX Neutrino 2 from Rob Krten. The Problem ist that
the example presented in the book and on the website are different.
Can someone please describe the differences in a few simple words? Is
one of the code outdated?
For example the book initializes the resmgr with:
/* allocate a context structure /
ctp = resmgr_context_alloc(dpp);
but in the article the function used is
/ allocate a context structure */
ctp = dispatch_context_alloc(dpp);
also the way the resmgr send messages to the client is very different in
the book it is done with:
MsgReply(ctp->rcvid, nbytes, dataString + off, nbytes);
but int the article it is done via IOV:
/* set up the return data IOV */
SETIOV (ctp->iov, buffer + ocb->offset, nbytes);
where the buffer must be global an d static.