What is the significance of access_ok macro ? I see that it's defined in
linux-2.6.34/include/asm-generic/uaccess.h as :
#define access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size))#define access_ok(type, addr, size) __access_ok((unsigned long)(addr),(size))
/*
* The architecture should really override this if possible, at least
* doing a check on the get_fs()
*/
#ifndef __access_ok
static inline int __access_ok(unsigned long addr, unsigned long size)
{
return 1;
}
#endif
Please help me with this.
Regards,
kern-devel