mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Amber Palekar <amber_palekar@yahoo.com>
To: kernel list <linux-kernel@vger.kernel.org>
Subject: Thread Insomnia !!!
Date: Fri, 4 Jan 2002 02:35:54 -0800 (PST)	[thread overview]
Message-ID: <20020104103554.31340.qmail@web20308.mail.yahoo.com> (raw)

hi,
  i want to do a non-blocking sock_recvmsg in a
module(2.4.4 on an i386) .( i am usign MSG_DONTWAIT
for that ) I am doing this inside a kernel
thread.After this stmt , i put the thread to sleep by
doing :-

 while(1)
{
   .....
   .....
   ret = sock_recvmsg(.....,MSG_DONTWAIT);
   if(ret < 0)
   {
        DECLARE_WAIT_QUEUE_HEAD(wait);
        interruptible_sleep_on_timeout(&wait,HZ);
   }
   else
   {
        /* print the mesg and get out of loop */
   }
 }
      As soon as i insmod this module my m/c just
hangs after it reaches the sleep stmt( i used printk
debugging to get this ) Any solutions ????

TIA,
Amber

__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

                 reply	other threads:[~2002-01-04 10:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20020104103554.31340.qmail@web20308.mail.yahoo.com \
    --to=amber_palekar@yahoo.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®