[lkml]   [2002]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: system call for finding the number of cpus??

    On 2002.04.08 Davide Libenzi wrote:
    >On Mon, 8 Apr 2002, Kuppuswamy, Priyadarshini wrote:
    >> Hi!
    >> I have a script that is using the /cpu/procinfo file to determine the
    >> number of cpus present in the system. But I would like to implement it
    >> using a system call rather than use the environment variables?? I
    >> couldn't find a system call for linux that would give me the result.
    >> Could anyone please let me know if there is one for redhat linux??

    I din't really trusted you, so digged inside includes till bits/confname.h
    Why the h*ll the manpage about sysconf does not talk about that ?????

    J.A. Magallon # Let the source be with you...
    Mandrake Linux release 8.3 (Cooker) for i586
    Linux werewolf 2.4.19-pre6-jam1 #1 SMP Sun Apr 7 00:50:05 CEST 2002 i686
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:25    [W:0.064 / U:13.424 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site