access_ok

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux