Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 8 Apr 2002 18:56:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 8 Apr 2002 18:56:17 -0400 Received: from 60.54.252.64.snet.net ([64.252.54.60]:38524 "EHLO hotmale.boyland.org") by vger.kernel.org with ESMTP id ; Mon, 8 Apr 2002 18:56:16 -0400 Message-ID: <3CB220B8.3000305@blue-labs.org> Date: Mon, 08 Apr 2002 18:59:04 -0400 From: David Ford User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9+) Gecko/20020402 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Love CC: "Kuppuswamy, Priyadarshini" , linux-kernel@vger.kernel.org Subject: Re: system call for finding the number of cpus?? In-Reply-To: <6B003D25ADBDE347B5542AFE6A55B42E01A4451A@tayexc13.americas.cpqcorp.net> <1018301108.913.167.camel@phantasy> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org # grep -c "^processor" /proc/cpuinfo 2 -d 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. > > Robert Love > - 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/