From owner-freebsd-hackers Mon May 22 11:39:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f7.law9.hotmail.com [64.4.9.7]) by hub.freebsd.org (Postfix) with SMTP id 93C4E37BB8B for ; Mon, 22 May 2000 11:39:45 -0700 (PDT) (envelope-from gerald_stoller@hotmail.com) Received: (qmail 26601 invoked by uid 0); 22 May 2000 18:39:45 -0000 Message-ID: <20000522183945.26600.qmail@hotmail.com> Received: from 12.20.190.1 by www.hotmail.com with HTTP; Mon, 22 May 2000 11:39:45 PDT X-Originating-IP: [12.20.190.1] From: "gerald stoller" To: hackers@FreeBSD.ORG Subject: hashing a symbol before looking into a hashed table Date: Mon, 22 May 2000 14:39:45 EDT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've been looking at the source code for FreeBSD 3.3 and i noticed that a table-lookUp is called and given the name to look-up and also its hashed value. Why is the hashed value supplied, why should the caller even be aware of it (this is strictly internal to the table-lookUp)? Even if there are differing hashing techniques for various tables, the caller shouldn't have to know which one to use. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message