Messages in this thread | | | Date | Thu, 6 Jan 2005 22:58:09 -0800 (PST) | From | selvakumar nagendran <> | Subject | Process blocking behaviour |
| |
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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |