From: Martin Maletinsky <maletinsky@scs.ch>
To: Anil Kumar <kernelmack@yahoo.com>
Cc: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org
Subject: Re: putting a user program to sleep till interrupted
Date: Mon, 01 Oct 2001 09:39:57 +0200 [thread overview]
Message-ID: <3BB81DCD.24D8338F@scs.ch> (raw)
In-Reply-To: <20010928165004.3060.qmail@web20401.mail.yahoo.com>
Hello,
A good explanation is found in:
http://www.linuxdoc.org/LDP/lki/lki-2.html#ss2.5
and also in Chapter 5, 'Linux Device Drivers' from Alessandro Rubini & Jonathan Corbet
(you find an electronic version of the book in http://www.oreilly.com/catalog/linuxdrive2/)
regards
Martin
Anil Kumar wrote:
> hi,
> I wanted to know how a user program/process can be put
> to sleep by using the functions given in the kernel. I
> will be calling the function not from user space but
> from kernel space, i.e. from inside the kernel. I also
> want to be able to start it again whenever required.
> I went thru sched.c but couldn't figure out how to
> make my own wait list.
> Thanx in advance.
> Anil
>
> __________________________________________________
> Do You Yahoo!?
> Listen to your Yahoo! Mail messages from any phone.
> http://phone.yahoo.com
> -
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive: http://mail.nl.linux.org/kernelnewbies/
> IRC Channel: irc.openprojects.net / #kernelnewbies
> Web Page: http://www.kernelnewbies.org/
--
Supercomputing System AG email: maletinsky@scs.ch
Martin Maletinsky phone: +41 (0)1 445 16 05
Technoparkstrasse 1 fax: +41 (0)1 445 16 10
CH-8005 Zurich
prev parent reply other threads:[~2001-10-01 7:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-28 15:16 inverse mmap() available? Norbert Roos
2001-09-28 15:28 ` Tommy Reynolds
2001-09-28 15:30 ` Christoph Hellwig
2001-09-28 16:50 ` putting a user program to sleep till interrupted Anil Kumar
2001-10-01 7:39 ` Martin Maletinsky [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=3BB81DCD.24D8338F@scs.ch \
--to=maletinsky@scs.ch \
--cc=kernelmack@yahoo.com \
--cc=kernelnewbies@nl.linux.org \
--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