info on message_context_t... where?

Hi…

I can’t seem to find documented information on message_context_t.

Where would I find this information? The definition is in
<sys/dispatch.h>, but… what would be the difference between
message_context_t and resmgr_context_t? It seems to me that their
definitions are exactly the same.

In any case, I suppose that the ‘size’ member has the same definition in
message_context_t as in resmgr_context_t, that is, ‘size’ equals the
number of valid bytes that the resource manager passes to the resource
handler. Would this be correct?

Thanks in advance. :slight_smile:

Bests…

Miguel.

my opinions are mine, only mine, solely mine, and they are not related
in any possible way to the institution(s) in which I study and work.

Miguel Simon
Research Engineer
School of Aerospace and Mechanical Engineering
University of Oklahoma
http://www.amerobotics.ou.edu/
http://www.saic.com

Miguel Simon <simon@ou.edu> wrote:

Hi…

I can’t seem to find documented information on message_context_t.

Where would I find this information? The definition is in
sys/dispatch.h>, but… what would be the difference between
message_context_t and resmgr_context_t? It seems to me that their
definitions are exactly the same.

They are for a good reason … internally the structures are overloaded
and types are used for compiler type checking convenience.

In any case, I suppose that the ‘size’ member has the same definition in
message_context_t as in resmgr_context_t, that is, ‘size’ equals the
number of valid bytes that the resource manager passes to the resource
handler. Would this be correct?

That is correct. The source is available on-line in our
CVS repository for further introspection @

http://cvs.qnx.com/cgi-bin/cvsweb.cgi/nto/libc/dispatch/
http://cvs.qnx.com/cgi-bin/cvsweb.cgi/nto/libc/resmgr/

Note that this is not necessarily for the faint of heart
as the source path is without a doubt twisted and at times
quite convoluted.

Thomas

Thomas (toe-mah) Fletcher QNX Software Systems
thomasf@qnx.com Neutrino Development Group
(613)-591-0931 http://www.qnx.com/~thomasf