From owner-freebsd-arch@FreeBSD.ORG Mon Jun 5 15:36:43 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F14016A5C3; Mon, 5 Jun 2006 15:36:43 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id A55EB43D45; Mon, 5 Jun 2006 15:36:42 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 8AA0046C07; Mon, 5 Jun 2006 11:36:41 -0400 (EDT) Date: Mon, 5 Jun 2006 16:36:41 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Daniel Eischen In-Reply-To: Message-ID: <20060605163559.N50057@fledge.watson.org> References: <1fa17f810606050044k2847e4a2i150eb934ed84006f@mail.gmail.com> <1fa17f810606050608l5bd2ec5ch37663375f6fa5b64@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: MingyanGuo , delphij@gmail.com, freebsd-arch@freebsd.org Subject: Re: Why use `thread' as an argument of Syscalls? X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 15:36:45 -0000 On Mon, 5 Jun 2006, Daniel Eischen wrote: >> They are the same questions, I think ;-). Now would you please explain "why >> use `proc' as an argument of Syscalls" to me :)? I've read some source >> code of the kernel, but no comments about it found. > > I don't know. Convention? It makes sense to me. Certainly consistency. Most system calls do actually use the argument at some point -- be it to look up a file descriptor, access control, or the like, and the calling context has it for free and in-hand anyway. Robert N M Watson