Is `IS_ERR_VALUE` indicates that the return value is invalid?
naive231 at gmail.com
Thu Nov 7 00:41:07 EST 2013
In kernel source, `IS_ERR_VALUE` is defined:
#define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
It's usage can be realized literally, but definition is not.
Can I use this macro to determines the kernel API's result is valid?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kernelnewbies