Hi,
I am writing a resource manager and have understood that there is a callback
function for every message type.
For example, iofunc_open_default() is the callback function for _IO_CONNECT.
I want to add some actions in addition to the default routine for _IO_DUP.
It’s not easy to find the default callback function for _IO_DUP message.
What is the default callback function for _IO_DUP?
Thanks.
ji hyeon kim wrote:
Hi,
I am writing a resource manager and have understood that there is a callback
function for every message type.
For example, iofunc_open_default() is the callback function for _IO_CONNECT.
I want to add some actions in addition to the default routine for _IO_DUP.
It’s not easy to find the default callback function for _IO_DUP message.
What is the default callback function for _IO_DUP?
Thanks.
There is no additional iofunc-level callout for DUP, it is all handled
at the resmgr level. You can register your additional callout in the
‘dup’ field of the resmgr_io_funcs_t; it should return EOK to let the
DUP procede (or can fail with other error).
Can you give me more hint?
There is one definition of
“int (*dup)(resmgr_context_t *ctp, io_dup_t *msg, RESMGR_OCB_T *ocb);” in
resmgr_io_func_t.
Should I add here my additional callout function for _IO_DUP?
“John Garvey” <jgarvey@qnx.com> wrote in message
news:e6ruf4$9ke$1@inn.qnx.com…
ji hyeon kim wrote:
Hi,
I am writing a resource manager and have understood that there is a
callback
function for every message type.
For example, iofunc_open_default() is the callback function for
_IO_CONNECT.
I want to add some actions in addition to the default routine for
_IO_DUP.
It’s not easy to find the default callback function for _IO_DUP message.
What is the default callback function for _IO_DUP?
Thanks.
There is no additional iofunc-level callout for DUP, it is all handled
at the resmgr level. You can register your additional callout in the
‘dup’ field of the resmgr_io_funcs_t; it should return EOK to let the
DUP procede (or can fail with other error).