From owner-cvs-all@FreeBSD.ORG Tue Feb 3 20:44:18 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 2F62B16A4CE; Tue, 3 Feb 2004 20:44:18 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B32043D48; Tue, 3 Feb 2004 20:44:17 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i144iH0B049838; Tue, 3 Feb 2004 20:44:17 -0800 (PST) (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i144iHHQ049837; Tue, 3 Feb 2004 20:44:17 -0800 (PST) (envelope-from wpaul) Message-Id: <200402040444.i144iHHQ049837@repoman.freebsd.org> From: Bill Paul Date: Tue, 3 Feb 2004 20:44:17 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/ndis subr_ndis.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: Wed, 04 Feb 2004 04:44:18 -0000 wpaul 2004/02/03 20:44:17 PST FreeBSD src repository Modified files: sys/compat/ndis subr_ndis.c Log: Correct/improve the implementation of NdisMAllocateSharedMemoryAsync(). Since we have a worker thread now, we can actually do the allocation asynchronously in that thread's context. Also, we need to return a status value: if we're unable to queue up the async allocation, we return NDIS_STATUS_FAILURE, otherwise we return NDIS_STATUS_PENDING to indicate the allocation has been queued and will occur later. This replaces the kludge where we just invoked the callback routine right away in the current context. Revision Changes Path 1.42 +50 -13 src/sys/compat/ndis/subr_ndis.c