Messages in this thread | | | Date | Wed, 22 Nov 2000 11:29:52 +0200 | From | Matti Aarnio <> | Subject | Re: Kernel bits |
| |
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/
| |