ionotify query

Hi:

  1. I was looking at the ionotify framework on 6.2 and couldnt understand
    a couple of things.

  2. The documentation suggests using IOFUNC_NOTIFY_INIT() to initialize
    the notify list. This sets the value of cnt to 0x7fffffff [the max
    positive value]

  3. Later IOFUNC_NOTIFY_INPUT_CHECK() is used which checks if the current
    count is greater than the ‘cnt’ in the notify list.

  4. This will never be, since you initialized cnt to be positive max! so
    the check alway fails.

Shouldnt cnt have been initialized to negative max or zero, for all this
to work? Am I missing somehting basic here?

Help will be appreciated.

-Rommel