Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 02-03-2009, 12:30 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 20

Rep: Reputation: 0
Unhappy How to print wait reason in linux

How to print the wait reasons of the processes which are sleeping for different reasons in kernel without using device driver module? The programming language should be C.
Old 02-03-2009, 10:17 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,986

Rep: Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444
Ask your teacher.

The answer to this question is so transparently obvious, and the tag "the programming language should be 'C'" is such a homework phrase, that I know you're not learning a tinker's-dam thing in your class. And just wasting our collective time here.
Old 02-03-2009, 11:15 PM   #3
LQ Newbie
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I am not able to understand your point. If you know how to get the waitreasons for the sleeping processes then tell me. From which kernel structure I can get this info?
Old 02-03-2009, 11:26 PM   #4
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
Then please re-read sundialsvcs' post in the context of this part of the LQ Rules:
Do not expect LQ members to do your homework - you will learn much more by doing it yourself
In other words, it you want help with your homework, tell us what you've done and what you're stuck on. Please don't expect someone here to do the work for you.
Old 02-04-2009, 12:21 AM   #5
LQ Newbie
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I donnot expect anyone to do the entire prograaming for me.I only want someone to tell me from where I can get the required info.I have specified the programming language just to be specific about the query. I have tried with wait queue concept. But it is not working according to the requirement.



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
Hello... new to Linux, why did I wait so Long! markmowbray Member Intro 3 11-09-2007 07:39 AM
My HP 720c printer isn't print at all in linux but print in windows. nadavvin Linux - Hardware 9 11-12-2006 10:30 AM
Reason 2.5 with LINUX soy Linux - Software 4 06-14-2005 02:05 PM

All times are GMT -5. The time now is 02:51 PM.

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