mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: selvakumar nagendran <kernelselva@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Process blocking behaviour
Date: Thu, 6 Jan 2005 22:58:09 -0800 (PST)	[thread overview]
Message-ID: <20050107065809.60035.qmail@web60604.mail.yahoo.com> (raw)

Hello linux-experts,
   
  I am intercepting system calls in Linux kernel
2.4.28.
  
  Pseudo-code:
  ------------
    saved_old_syscall =
sys_call_table[sycallno(read)];
    sys_call_table[read] = my_sys_call;
    
  my_sys_call(file descriptor)
  -------------
     Call saved_old_syscall(file descriptor).
    
     Now at this point, I want to determine whether
the system call blocks waiting for the file descriptor
resource. How can I do that? Should I modify the
kernel code only for this?

   Can I check its state after the call as
     if (task_current_state == INTERRUPTIBLE
            || UNINTERRUPTIBLE) to do this?
             
Thanks,
selva

  

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

             reply	other threads:[~2005-01-07  6:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-07  6:58 selvakumar nagendran [this message]
2005-01-07 17:29 ` Daniel Gryniewicz

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=20050107065809.60035.qmail@web60604.mail.yahoo.com \
    --to=kernelselva@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

Powered by JetHome