From owner-freebsd-current@FreeBSD.ORG Tue Oct 25 15:06:55 2011 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A86D106566B for ; Tue, 25 Oct 2011 15:06:55 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.59.238]) by mx1.freebsd.org (Postfix) with ESMTP id CAFDE8FC19 for ; Tue, 25 Oct 2011 15:06:54 +0000 (UTC) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id 84D027300A; Tue, 25 Oct 2011 17:06:22 +0200 (CEST) Date: Tue, 25 Oct 2011 17:06:22 +0200 From: Luigi Rizzo To: current@freebsd.org Message-ID: <20111025150622.GA7462@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: getting the cpuid for a userspace process ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2011 15:06:55 -0000 as the subject says... is there any way to get the current CPU id for a userspace process (of course, valid only at the time the function is called as the process might be arbitrarily moved while it runs) thanks luigi