Hello,
I have some questions regarding the iofunc_notify and ionotify
library calls. These calls can be used for any type of resource
managers … my questions are:
-
on what base does the helper function ‘iofunc_notify’ decide
whether the conditions ‘input data available’ or ‘output buffer
space available’ are available or not?
-
if the above condtions are not available, how gets iofunc_notify
knowledge about the avaiblity of these conditions?
-
sends iofunc_notify a notification if one of these conditions are
met?
-
who takes care about the linked list ‘nop’??
Hope to get an answer soon … it would also please some
developers from IBM.
Armin
Armin Steinhoff <A-Steinhoff@web_.de> wrote:
Hello,
I have some questions regarding the iofunc_notify and ionotify
library calls. These calls can be used for any type of resource
managers … my questions are:
- on what base does the helper function ‘iofunc_notify’ decide
whether the conditions ‘input data available’ or ‘output buffer
space available’ are available or not?
The trig. (4th member). Usually a notify_handler looks like:
int my_notify() {
int trig;
trig = 0;
if (my client could write)
trig |= _NOTIFY_COND_OUTPUT;
if (my client could read)
trig |= _NOTIFY_COND_INPUT;
return iofunc_notify(ctp, msg, ocb->attr->notify, trig, 0, 0);
}
-
if the above condtions are not available, how gets iofunc_notify
knowledge about the avaiblity of these conditions?
-
sends iofunc_notify a notification if one of these conditions are
met?
Whenever the conditions available, you call iofunc_notify_trigger(),
the trigger function then decided if a notify is necessary to send
out.
- who takes care about the linked list ‘nop’??
Not sure what do you mean.
-xtang
Hope to get an answer soon … it would also please some
developers from IBM.
Armin
Xiaodan Tang wrote:
Armin Steinhoff <A-Steinhoff@web_.de> wrote:
Hello,
I have some questions regarding the iofunc_notify and ionotify
library calls. These calls can be used for any type of resource
managers … my questions are:
- on what base does the helper function ‘iofunc_notify’ decide
whether the conditions ‘input data available’ or ‘output buffer
space available’ are available or not?
The trig. (4th member). Usually a notify_handler looks like:
int my_notify() {
int trig;
trig = 0;
if (my client could write)
trig |= _NOTIFY_COND_OUTPUT;
if (my client could read)
trig |= _NOTIFY_COND_INPUT;
return iofunc_notify(ctp, msg, ocb->attr->notify, trig, 0, 0);
Thanks so far … the remaining problem is that notify isn’t a
member of attr
}
- if the above condtions are not available, how gets iofunc_notify
knowledge about the avaiblity of these conditions?
Someone is able to answer that question?
- sends iofunc_notify a notification if one of these conditions are
met?
Whenever the conditions available, you call iofunc_notify_trigger(),
the trigger function then decided if a notify is necessary to send
out.
OK
- who takes care about the linked list ‘nop’??
Not sure what do you mean.
I mean the actual parameter ‘ocb->attr->notify’ in the iofunc_notify
above.
Armin
-xtang
Hope to get an answer soon … it would also please some
developers from IBM.
Armin
“Armin Steinhoff” <A-Steinhoff@web_.de> wrote in message
news:3A94E1E2.E9F4BE5D@web_.de…
Xiaodan Tang wrote:
Armin Steinhoff <A-Steinhoff@web_.de> wrote:
Hello,
I have some questions regarding the iofunc_notify and ionotify
library calls. These calls can be used for any type of resource
managers … my questions are:
- on what base does the helper function ‘iofunc_notify’ decide
whether the conditions ‘input data available’ or ‘output buffer
space available’ are available or not?
The trig. (4th member). Usually a notify_handler looks like:
int my_notify() {
int trig;
trig = 0;
if (my client could write)
trig |= _NOTIFY_COND_OUTPUT;
if (my client could read)
trig |= _NOTIFY_COND_INPUT;
return iofunc_notify(ctp, msg, ocb->attr->notify, trig, 0, 0);
Thanks so far … the remaining problem is that notify isn’t a
member of attr >
That’s because because you must add it yourself … I make sense
to put in attr. But you could have it anywhere you want.
Mario Charest wrote:
“Armin Steinhoff” <A-Steinhoff@web_.de> wrote in message
news:3A94E1E2.E9F4BE5D@web_.de…
Xiaodan Tang wrote:
Armin Steinhoff <A-Steinhoff@web_.de> wrote:
Hello,
I have some questions regarding the iofunc_notify and ionotify
library calls. These calls can be used for any type of resource
managers … my questions are:
- on what base does the helper function ‘iofunc_notify’ decide
whether the conditions ‘input data available’ or ‘output buffer
space available’ are available or not?
The trig. (4th member). Usually a notify_handler looks like:
int my_notify() {
int trig;
trig = 0;
if (my client could write)
trig |= _NOTIFY_COND_OUTPUT;
if (my client could read)
trig |= _NOTIFY_COND_INPUT;
return iofunc_notify(ctp, msg, ocb->attr->notify, trig, 0, 0);
Thanks so far … the remaining problem is that notify isn’t a
member of attr >
That’s because because you must add it yourself … I make sense
to put in attr. But you could have it anywhere you want.
Thanks Mario. The silence from QSSL gives me more reasons not to use
their resource manager library … so I’m going to do my own
thing, it could be that I place the sources of my library at
sourceforge.
Armin
Hi Armin,
The questions you posted have been submitted to the doc
people as a doc bug, answers will then be added into the
documentation.
Thanks for bringing this to our attention.
Erick.
Armin Steinhoff <A-Steinhoff@web_.de> wrote:
Hello,
I have some questions regarding the iofunc_notify and ionotify
library calls. These calls can be used for any type of resource
managers … my questions are:
-
on what base does the helper function ‘iofunc_notify’ decide
whether the conditions ‘input data available’ or ‘output buffer
space available’ are available or not?
-
if the above condtions are not available, how gets iofunc_notify
knowledge about the avaiblity of these conditions?
-
sends iofunc_notify a notification if one of these conditions are
met?
-
who takes care about the linked list ‘nop’??
Hope to get an answer soon … it would also please some
developers from IBM.
Armin
Hardware Support Account wrote:
Hi Armin,
The questions you posted have been submitted to the doc
people as a doc bug, answers will then be added into the
documentation.
Thanks, don’t hurry up … I’ve solved my problem already by my own
routines. We had to meet deadlines …
Armin
Thanks for bringing this to our attention.
Erick.
Armin Steinhoff <A-Steinhoff@web_.de> wrote:
Hello,
I have some questions regarding the iofunc_notify and ionotify
library calls. These calls can be used for any type of resource
managers … my questions are:
-
on what base does the helper function ‘iofunc_notify’ decide
whether the conditions ‘input data available’ or ‘output buffer
space available’ are available or not?
-
if the above condtions are not available, how gets iofunc_notify
knowledge about the avaiblity of these conditions?
-
sends iofunc_notify a notification if one of these conditions are
met?
-
who takes care about the linked list ‘nop’??
Hope to get an answer soon … it would also please some
developers from IBM.
Armin