From owner-cvs-src@FreeBSD.ORG Tue Jan 17 16:55:17 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E3C416A436; Tue, 17 Jan 2006 16:55:17 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64E1D43D48; Tue, 17 Jan 2006 16:55:17 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0HGtHhe025011; Tue, 17 Jan 2006 16:55:17 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0HGtHWh025010; Tue, 17 Jan 2006 16:55:17 GMT (envelope-from jhb) Message-Id: <200601171655.k0HGtHWh025010@repoman.freebsd.org> From: John Baldwin Date: Tue, 17 Jan 2006 16:55:17 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/conf files src/sys/kern kern_mutex.c kern_sx.c subr_lock.c subr_witness.c src/sys/sys lock.h mutex.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 16:55:17 -0000 jhb 2006-01-17 16:55:17 UTC FreeBSD src repository Modified files: sys/conf files sys/kern kern_mutex.c kern_sx.c subr_witness.c sys/sys lock.h mutex.h Added files: sys/kern subr_lock.c Log: Add a new file (kern/subr_lock.c) for holding code related to struct lock_obj objects: - Add new lock_init() and lock_destroy() functions to setup and teardown lock_object objects including KTR logging and registering with WITNESS. - Move all the handling of LO_INITIALIZED out of witness and the various lock init functions into lock_init() and lock_destroy(). - Remove the constants for static indices into the lock_classes[] array and change the code outside of subr_lock.c to use LOCK_CLASS to compare against a known lock class. - Move the 'show lock' ddb function and lock_classes[] array out of kern_mutex.c over to subr_lock.c. Revision Changes Path 1.1084 +1 -0 src/sys/conf/files 1.165 +28 -56 src/sys/kern/kern_mutex.c 1.28 +3 -16 src/sys/kern/kern_sx.c 1.1 +113 -0 src/sys/kern/subr_lock.c (new) 1.211 +0 -8 src/sys/kern/subr_witness.c 1.56 +8 -6 src/sys/sys/lock.h 1.82 +1 -1 src/sys/sys/mutex.h