summaryrefslogtreecommitdiffstats
path: root/tapset/iserr.stp
blob: 26207fdfb67ba9b3d17d8106b7c05af11ae4a23a (plain)
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();	
%}