mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Xin Zhao <uszhaoxin@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: can someone explain how to implement callback in kernel?
Date: Wed, 26 Oct 2005 13:06:16 -0400	[thread overview]
Message-ID: <4ae3c140510261006q193e466bjc90ace3e7979393c@mail.gmail.com> (raw)

I am writing a device driver. I want to achieve asynchronous I/O. What
I want to do is as follows:

1. the driver issues a request to the device. Instead of waiting , it
schedules a callback,  then return.

2. after the device serves the request, the callback should be
triggered to finish the rest of work for this request.

This seems to be a standard callback working flow. But I don't know
how to implement this. Can someone give me a brief idea or point me to
some link about this?

Thanks in advance!

Xin

             reply	other threads:[~2005-10-26 17:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-26 17:06 Xin Zhao [this message]
2005-10-26 18:53 ` Michael Krufky

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=4ae3c140510261006q193e466bjc90ace3e7979393c@mail.gmail.com \
    --to=uszhaoxin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /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®