From owner-freebsd-smp Wed Mar 27 2:43:47 2002 Delivered-To: freebsd-smp@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id A6C9537B400; Wed, 27 Mar 2002 02:43:44 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id VAA30333; Wed, 27 Mar 2002 21:43:42 +1100 Date: Wed, 27 Mar 2002 21:44:14 +1100 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: John Baldwin Cc: smp@FreeBSD.ORG Subject: Re: suser() API change patch In-Reply-To: Message-ID: <20020327213629.S3808-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, 26 Mar 2002, John Baldwin wrote: > The patch at the URL below changes the suser() API as follows. Currently we > have four suser() functions that take the following args: > > suser(proc) > suser_td(thread) > suser_xxx(cred, proc, flag) > suser_xxx_td(cred, thread, flag) > > In the new scheme (which has been approved by Robert Watson and is really > his design) we go back to only two functions like so: > > suser(thread, flag) > suser_cred(cred, flag) The former should be suser(thread). In the patch, the flag is nonzero in less than 10% of the calls. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message