lkml.org 
[lkml]   [2007]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Question on IS_ERR
On 8/9/07, H. Peter Anvin <hpa@zytor.com> wrote:
>
> No. There is no requirement that the pointer is page-aligned. The last
> page of the address space is (in the Linux kernel) invalid by
> definition, so there are in effect three kinds of pointers in the Linux
> kernel: valid pointers, NULL, and ERR_PTR()s.
>
> -hpa
>

Regarding "The last page of the address space is invalid by definition",
I am wondering why do we define the last page as invalid.
The reason for defining this is just because we want to take use of
the error number handling?

Regards
Jason
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-08-09 08:35    [W:0.033 / U:0.428 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site