Char Device and Accessing RunQueue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I am visulazing a one of the use of char device
driver.
I need to write a char device which will prompt me by
printing on my pseudo terminal if there is any zombie
element in a runqueue on a specific processor. 

Is it possible to keep a track on runqueue through a
function defined in a char device ? If I provied the
information about zombies via /proc filesystem, then a
user needs to read file again and again and would not
be able to keep a constant watch on the zombies. Is it
possible that my char device goes to sleep on a
waitqueue and wakes up's only when a zombies process
has come in a runqueue and then after giving details
of that zombie process, my char device driver again
goes to sleep and wait for new zombies in a runqueue.

Could anyone guide me is the above thought can be
implemented.

Regards
Dinesh



________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux