From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 15 15:56:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C776316A4CE for ; Wed, 15 Dec 2004 15:56:54 +0000 (GMT) Received: from web52707.mail.yahoo.com (web52707.mail.yahoo.com [206.190.39.158]) by mx1.FreeBSD.org (Postfix) with SMTP id 401CD43D58 for ; Wed, 15 Dec 2004 15:56:54 +0000 (GMT) (envelope-from kamalpr@yahoo.com) Received: (qmail 87863 invoked by uid 60001); 15 Dec 2004 15:56:53 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=in2K1UJQ9MEaMd4quW+RsA95Hm3s01LKkLamPHyeUsDyxYT6//H9ja/QXNTWt6oajJBYmlK6rzt9C3Uig43tlCc7cxZxhqXpwZdNL6svC+IYuy3CcQSeXLgbzAF8kUJngSYLQk7N4hds5jK5QlTm9ji26j8C1wG0g0HuEkZHYXc= ; Message-ID: <20041215155653.87861.qmail@web52707.mail.yahoo.com> Received: from [202.91.78.244] by web52707.mail.yahoo.com via HTTP; Wed, 15 Dec 2004 07:56:53 PST Date: Wed, 15 Dec 2004 07:56:53 -0800 (PST) From: "Kamal R. Prasad" To: Andrey Simonenko In-Reply-To: <20041215151029.GA2832@pm514-9.comsys.ntu-kpi.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD system call implementation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kamalp@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2004 15:56:54 -0000 --- Andrey Simonenko wrote: > On Wed, Dec 15, 2004 at 08:19:05PM +0530, Ravi > Krishna wrote: > > > My question is why we store the > p->p_sysent->sv_table > > for each process. What is the reason for keeping > this per process? > > Are there some situations where two processes can > have different system calls > > available? > > Processes can have different p_sysent, because the > kernel supports > different ABIs. sv_entry (pointer to some system > call table) is Sounds rather inefficient to have a per-process table rather than a set of ABIs into which the per process table is an indirection (similar to say vnops). regards -kamal __________________________________ Do you Yahoo!? Meet the all-new My Yahoo! - Try it today! http://my.yahoo.com