From owner-freebsd-hackers Wed Jan 1 17:35:43 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id RAA07371 for hackers-outgoing; Wed, 1 Jan 1997 17:35:43 -0800 (PST) Received: from root.com (implode.root.com [198.145.90.17]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id RAA07366 for ; Wed, 1 Jan 1997 17:35:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by root.com (8.7.6/8.6.5) with SMTP id RAA13418; Wed, 1 Jan 1997 17:34:53 -0800 (PST) Message-Id: <199701020134.RAA13418@root.com> X-Authentication-Warning: implode.root.com: Host localhost [127.0.0.1] didn't use HELO protocol To: Julian Assange cc: hackers@freebsd.org Subject: Re: struct file locking In-reply-to: Your message of "Thu, 02 Jan 1997 09:24:38 +1100." <199701012224.JAA06593@profane.iq.org> From: David Greenman Reply-To: dg@root.com Date: Wed, 01 Jan 1997 17:34:53 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >In the socket structure I intend to create a back-pointer to >originating struct file's->u_cred. What do I need to do to insure >these last two structures are reliably locked and in memory? See crhold() in sys/ucred.h and crfree() in sys/kern/kern_prot.c. They manage the cr_ref reference count. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project