1 2 3 4 5 6 7 8 9 10 11
%{ #include <linux/types.h> #include <linux/err.h> %} function is_err:long(_ptr:long) %{ THIS->__retvalue = (long)IS_ERR((char *)THIS->_ptr); CATCH_DEREF_FAULT(); %}