detecting kernel version via API or system call

From: Michelangelo Calatino (michelangelo.calatino_at_adstorino.it)
Date: 06/30/04

  • Next message: Ed Greshko: "Re: detecting kernel version via API or system call"
    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
    

  • Next message: Ed Greshko: "Re: detecting kernel version via API or system call"

    Relevant Pages

    • apparently random loader failures on some pthread.so.0 using legacy libs
      ... I have a strange problem on some Linux boxes, on some other runs, ... and quite strangely I could not figure out the glibc + kernel version combination ... Copyright 2002 Free Software Foundation, ... Michelangelo Calatino ...
      (RedHat)
    • Re: NetShareAdd() In Kernel Mode
      ... 1.To know what api function is called in the kernel when a user shares ... Createfile(), to know the driver letter where this share is mapped to. ...
      (microsoft.public.development.device.drivers)