Re: sysinfo.sharedram not accounted for on i386 ?
Alan Cox (firstname.lastname@example.org)
Mon, 12 Feb 2001 15:00:15 +0000 (GMT)
> > like an awkward approach. A related question: is the page size stored in
> > /proc somewhere?
> No, PAGE_SIZE is known at compile time and cannot ever change (especially
> it cannot change ig you stay within i386 architecture). It is available to
> programs by including <asm/page.h> header.
Untrue. On many architectures page size is not fixed. You should use the
getpagesize() function/syscall. glibc knows if its a syscall or a constant
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://vger.kernel.org/lkml/