From owner-cvs-src@FreeBSD.ORG Sat May 19 20:18:13 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1232B16A400; Sat, 19 May 2007 20:18:13 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id DEDC613C45B; Sat, 19 May 2007 20:18:12 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l4JKICUp003250; Sat, 19 May 2007 20:18:12 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l4JKICEk003233; Sat, 19 May 2007 20:18:12 GMT (envelope-from jhb) Message-Id: <200705192018.l4JKICEk003233@repoman.freebsd.org> From: John Baldwin Date: Sat, 19 May 2007 20:18:12 +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/kern kern_sx.c src/sys/sys sx.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: Sat, 19 May 2007 20:18:13 -0000 jhb 2007-05-19 20:18:12 UTC FreeBSD src repository Modified files: sys/kern kern_sx.c sys/sys sx.h Log: Expose sx_xholder() as a public macro. It returns a pointer to the thread that holds the current exclusive lock, or NULL if no thread holds an exclusive lock. Requested by: pjd Revision Changes Path 1.49 +0 -8 src/sys/kern/kern_sx.c 1.33 +8 -0 src/sys/sys/sx.h