Re: Kernel bits

From: Matti Aarnio (matti.aarnio@zmailer.org)
Date: Wed Nov 22 2000 - 04:29:52 EST


On Wed, Nov 22, 2000 at 09:25:46AM +0100, 64738 wrote:
> Hi.
>
> Is there a syscall or something that can tell me whether I'm working on a 32-
> or a 64-bit kernel?

        uname(2)

        It gives out various strings from which you must then deduce,
        what kind of kernel is needed to run at what kind of machine.

        And even though the machine is running with 64-bit kernel
        (e.g. alpha/sparc64/mips64/ia64), your userspace code might
        be running in 32-bit mode.

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



This archive was generated by hypermail 2b29 : Thu Nov 23 2000 - 21:00:22 EST