Re: No more bits in vm_area_struct's vm_flags.

From: KAMEZAWA Hiroyuki
Date: Thu Oct 01 2009 - 22:42:14 EST


On Fri, 2 Oct 2009 10:37:55 +0900
KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
> This one
> ==
> #define FLAG (0x20)
>
> int foo(unsigned long long x)
> {
> if (x & ~FLAG)
> return 1;
> return 0;
> }
>
Then, !!(x & ~FLAG) is necessary...i see (>_<
Maybe no problem..

Thanks,
-Kame

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