LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 02-02-2009, 07:08 AM   #1
tanniru
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Rep: Reputation: 0
Question need information about wait_event_interruptible ( ) ?


Hi,

DDG says wait_event_interruptible( )puts your process to sleep, which can interruptible by signals.

If I use this call in a char device driver ioctl( ) implementation, will this function puts entire process into sleep mode?

Is there any function which puts only thread (not process) to sleep ?

Thanks for your help.

Last edited by tanniru; 02-02-2009 at 07:10 AM.
 
Old 02-03-2009, 09:18 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,610
Blog Entries: 4

Rep: Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905Reputation: 3905
Kernel implementations of threading do vary, e.g. between 2.4 and 2.6. But as you will see from a cursory examination of the source code, "a process is effectively 'a collection of threads.' " The basic dispatchable-unit is a thread.
 
Old 02-04-2009, 12:03 AM   #3
tanniru
LQ Newbie
 
Registered: Mar 2006
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sundialsvcs View Post
Kernel implementations of threading do vary, e.g. between 2.4 and 2.6. But as you will see from a cursory examination of the source code, "a process is effectively 'a collection of threads.' " The basic dispatchable-unit is a thread.
I am working on Linux 2.6 kernel. Below is my requirement:
My user application is a multi-thread program. From one of the thread, I am calling ioctl to the driver, driver ioctl implementation can go to sleep in waiting for an event to occur. During this time, from another user thread if user sends an ioctl to the driver, which is non-blocking driver should be able to process the ioctl.

Implementation: For the above requirement I am thinking of using wait_event_interruptible system call. But, definition of wait_event_interruptible() says it puts the process to sleep. Is there any implementation similar to wait_event_interruptible(), which can put only a thread to sleep not a process.???

Thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to find out indone information and datablocks information in a file system chaitanya1982 Linux - Newbie 1 09-24-2008 01:58 AM
question about wait_event_interruptible lordofring Programming 5 08-26-2005 03:04 AM
signal in the kernel for wait_event_interruptible() lordofring Programming 3 08-23-2005 03:14 PM
wait_event_interruptible with timeout lordofring Programming 1 08-17-2005 10:10 PM
wait_event_interruptible - invalid lvalue in unary `&' 7.e.Q Programming 4 11-08-2004 02:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration