detecting kernel version via API or system call
From: Michelangelo Calatino (michelangelo.calatino_at_adstorino.it)
Date: 06/30/04
- Previous message: Duncan: "Increase Cache"
- Next in thread: Ed Greshko: "Re: detecting kernel version via API or system call"
- Reply: Ed Greshko: "Re: detecting kernel version via API or system call"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: <Redhat-list@redhat.com> Date: Wed, 30 Jun 2004 10:42:18 +0200
Hi folks,
I would like to check the kernel version, getting
the same result as :
uname -r
but inside a C program.
Is there an API function or system call I can use ?
Otherwise I could always look into :
/usr/include/linux/version.h
but, perhaps there is shorter way ?
Thank you,
Michelangelo
---------------------------------------------------------------------------------------------------------------
ing. Michelangelo Calatino
If only God would give me some clear sign !
Like making a large deposit in my name in a Swiss bank.
Woody Allen, 1935-
-- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Duncan: "Increase Cache"
- Next in thread: Ed Greshko: "Re: detecting kernel version via API or system call"
- Reply: Ed Greshko: "Re: detecting kernel version via API or system call"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|