LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 11:30 PM   #1
senrooy
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, 09:17 AM   #2
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,348

Rep: Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105Reputation: 1105
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, 10:15 PM   #3
senrooy
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, 10:26 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 151Reputation: 151
Then please re-read sundialsvcs' post in the context of this part of the LQ Rules:
Code:
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-03-2009, 11:21 PM   #5
senrooy
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.
 
  


Reply

Tags
kernel


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 LinuxQuestions.org Member Intro 3 11-09-2007 06:39 AM
My HP 720c printer isn't print at all in linux but print in windows. nadavvin Linux - Hardware 9 11-12-2006 09:30 AM
Reason 2.5 with LINUX soy Linux - Software 4 06-14-2005 01:05 PM


All times are GMT -5. The time now is 08:43 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration