lkml.org 
[lkml]   [2002]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: system call for finding the number of cpus??
    Date
    Followup to:  <20020408222742.A28352@infradead.org>
    By author: Christoph Hellwig <hch@infradead.org>
    In newsgroup: linux.dev.kernel
    >
    > On Mon, Apr 08, 2002 at 05:25:08PM -0400, Robert Love wrote:
    > > Linux does not implement such a syscall. Note
    > >
    > > cat /proc/cpuinfo | grep processor | wc -l
    > >
    > > works and is simple; you do not have to do it via script - execute it in
    > > your C program, save the one-line output, and atoi() it.
    >
    > I guess there is at least one architecture on which it breaks..
    > See http://people.nl.linux.org/~hch/cpuinfo/ for details.
    >

    Then that architecture should be fixed.

    -hpa
    --
    <hpa@transmeta.com> at work, <hpa@zytor.com> in private!
    "Unix gives you enough rope to shoot yourself in the foot."
    http://www.zytor.com/~hpa/puzzle.txt <amsp@zytor.com>
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

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