From owner-cvs-all@FreeBSD.ORG Fri Sep 24 05:54:32 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7A9F16A4CE; Fri, 24 Sep 2004 05:54:32 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 964C543D41; Fri, 24 Sep 2004 05:54:32 +0000 (GMT) (envelope-from phk@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i8O5sWX2099911; Fri, 24 Sep 2004 05:54:32 GMT (envelope-from phk@repoman.freebsd.org) Received: (from phk@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i8O5sWBu099910; Fri, 24 Sep 2004 05:54:32 GMT (envelope-from phk) Message-Id: <200409240554.i8O5sWBu099910@repoman.freebsd.org> From: Poul-Henning Kamp Date: Fri, 24 Sep 2004 05:54:32 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys conf.h src/sys/kern kern_conf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 05:54:32 -0000 phk 2004-09-24 05:54:32 UTC FreeBSD src repository Modified files: sys/sys conf.h sys/kern kern_conf.c Log: Introduce dev_re[lf]thread() functions. dev_refthread() will return the cdevsw pointer or NULL. If the return value is non-NULL a threadcount is held which much be released with dev_relthread(). If the returned cdevsw is NULL no threadcount is held on the device. Revision Changes Path 1.159 +25 -0 src/sys/kern/kern_conf.c 1.197 +3 -0 src/sys/sys/conf.h