LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-19-2008, 04:58 AM   #1
linwenyuan
LQ Newbie
 
Registered: Sep 2006
Posts: 27

Rep: Reputation: 15
why it can access current pointer in timer func?


hi all ,
now i am reading and studying ldd 3rd ,the chapter about kernel time.i have a question: why it can access current pointer in timer funcs now that the time func resembles software irq.
i embed the statment in my timer func
printk(KERN_ALERT "The process is \"%s\" (pid %i)\n cpu is %i\n",current->comm,current->pid,smp_processor_id());

some time the process is "swapper"
somt time is "klogd" or "syslogd",
but most of time is "swapper"

any answer would be appreciated very much .
 
  


Reply



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 can I get LAPIC timer to run instead of the PIT timer? sixerjman Linux - Kernel 1 10-16-2007 09:59 PM
Multimedia timer (SMP friendly timer) bigqueso Linux - Kernel 0 03-15-2007 03:49 PM
how to access private pointer of struct net_device??? raklo Linux - Kernel 1 02-24-2007 12:34 AM
difference between function declaration: func() and func(void) koyi Programming 4 11-19-2005 10:19 AM

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

All times are GMT -5. The time now is 04:26 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