mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Hagervall <hager@cs.umu.se>
To: shiva g <shiva@isofttech.com>
Cc: Sam Ravnborg <sam@ravnborg.org>, linux-kernel@vger.kernel.org
Subject: Re: mark_bh in Linux 2.6.12 kernel
Date: Wed, 29 Mar 2006 15:00:39 +0200	[thread overview]
Message-ID: <20060329130039.GA20545@brainysmurf.cs.umu.se> (raw)
In-Reply-To: <011d01c65320$2d5c2430$7b01a8c0@shiva>

On Wed, Mar 29, 2006 at 04:31:49PM +0530, shiva g wrote:
> Here is the source
> 
> static __inline__ void usbd_schedule_device_bh(struct usb_device_instance 
> *device)
> {
>    if (device && (device->status != USBD_CLOSING) && 
> !device->device_bh.sync) {
>        queue_task(&device->device_bh, &tq_immediate);
>        mark_bh(IMMEDIATE_BH);
>    }
> }
> 
> Also,in the below code, will replacing "schedule_task" simply by 
> "schedule_work" work?
> static __inline__ void usbd_schedule_function_bh(struct usb_device_instance 
> *device)
> {
>    if (device && (device->status != USBD_CLOSING) && 
> !device->function_bh.sync) {
>    schedule_task(&device->function_bh);
>    }
> 

Have a look at http://lwn.net/images/pdf/LDD3/ch10.pdf

It should answer your questions.

	Peter

-- 
Peter Hagervall......................email: hager@cs.umu.se
Department of Computing Science........tel: +46(0)90 786 7018
University of Umeå, SE-901 87 Umeå.....fax: +46(0)90 786 6126

      reply	other threads:[~2006-03-29 13:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-29 10:42 shiva g
2006-03-29 10:56 ` Sam Ravnborg
2006-03-29 11:01   ` shiva g
2006-03-29 13:00     ` Peter Hagervall [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060329130039.GA20545@brainysmurf.cs.umu.se \
    --to=hager@cs.umu.se \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sam@ravnborg.org \
    --cc=shiva@isofttech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®