From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 25 12:43:26 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1140016A407 for ; Wed, 25 Oct 2006 12:43:26 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8205643D4C for ; Wed, 25 Oct 2006 12:42:54 +0000 (GMT) (envelope-from usleepless@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so67482uge for ; Wed, 25 Oct 2006 05:42:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qHtIPqU6w1CfaBN/A6gBKTC6n5VqMEo/kVssixrPEneVsxfNFD5ifSQ9wCuCHB3JGPuDPW34EkKRnYZp8Krgrtf9Y5jWOPAPQ4YLkfNFAkb5fdofhjMvdA8N7+VMMM8qqGIcRLzC8B6doaAQ4FXxlreP0n/YBVP4ZkFhKshflmk= Received: by 10.78.160.2 with SMTP id i2mr753452hue; Wed, 25 Oct 2006 05:42:53 -0700 (PDT) Received: by 10.78.124.8 with HTTP; Wed, 25 Oct 2006 05:42:53 -0700 (PDT) Message-ID: Date: Wed, 25 Oct 2006 14:42:53 +0200 From: usleepless@gmail.com To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: taskqueue_drain X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 12:43:26 -0000 Hello, i am working on improving the driver for hauppauge PVR cards (multimedia/pvrxxx). i just implemented a "fast" interrupt using a taskqueue ( like the new if_em driver ). i have a couple of questions: 1. if_em is using taskqueue_enqueue rather than taskqueue_enqueue_fast. this is contrary to what "man taskqueue" claims. how come? 2. when my capture-device is closed, i need to drain the taskqueue. however, taskqueue_drain needs a task as an argument. but i have queued 2 different tasks on the taskqueue. what to do? i guess they need to be processed "in order". 3. when and in which version will the "fast" versions of the taskqueue-functions be released? will it be backported? if i create a patch and send-pr it, is it likely to be accepted for 6.x? i am developing this on 6.1-p10, but i imported subr_taskqueue.c and taskqueue.h from cvs. thank you for your time, usleep