From owner-freebsd-threads@FreeBSD.ORG Sat Jul 12 12:42:08 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B26E37B405 for ; Sat, 12 Jul 2003 12:42:08 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id E241343FE0 for ; Sat, 12 Jul 2003 12:42:01 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from PETEX31 (h81.vuokselantie10.fi [193.64.42.129]) by silver.he.iki.fi (8.12.9/8.11.4) with SMTP id h6CJfssL070831; Sat, 12 Jul 2003 22:41:54 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <003501c348ad$a599fba0$812a40c1@PETEX31> From: "Petri Helenius" To: "Julian Elischer" References: Date: Sat, 12 Jul 2003 22:41:53 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: Andrew Gallatin cc: freebsd-threads@freebsd.org Subject: Re: dumb KSE question X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jul 2003 19:42:08 -0000 > Assuming that the ioctl blocks. > netgraph doesn; impliment ioctls so I don't see how I have a device which talks netgraph (similar to ng_device) so ioctl´s are available across the device. > this si a netgraph question, unless the netgraph node is CALLING > code that blocks.. > (which would be a no-no) The cv I´m talking about would be signaled by a device driver which shares some memory with the netgraph device node and the question is about if in the ng_device like thing I can have the d_ioctl_t block on the cv. > > > > > How expensive in relative terms is cv_signal? Should I moderate calls to > > it if the above works fine othervise? In most cases the wait list would > > be empty, so the question more or less is if I should have a separate > > indication > > Userland cv stuff is relatively cheap in linkse. A bit more expensive in > libthr but still cheap. How about in kernel. I suppose I cannot share cv´s between kernel and userland so I need to cross into kernel to wait on a kernel cv? > > Are you talking anout kernel or userland CVs? > I need more info to understand the question.. > In this case kernel but I the information on userland is useful too. Pete