Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-16-2009, 09:13 AM   #1
LQ Newbie
Registered: Jan 2008
Location: india
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
Smile How to declare a Global Variable in Kernel

i want to declare a global variable in kernel.. and it should be accessed by all the modules. i will use this global variable to notify any error occurs while init_module of all device drivers.

i tried to declare the global variable in driver itself but i could not able to do it..

Can anyone tell me where i could declare the global variable in kernel,so that it could be accessed by all driver modules..

finally i can use an application to copy the status of all device drivers..

Please give me your suggestions
Old 04-17-2009, 01:55 AM   #2
Registered: Jun 2007
Posts: 118

Rep: Reputation: 17
Have you tried exporting symbols to kernel so that it can be accessed by all modules?




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
add global variable in linux kernel sourcecode sid18 Linux - Kernel 3 01-18-2008 09:43 PM
Declare variable in a script against a command shipon_97 Linux - Newbie 13 12-07-2007 04:17 AM
Where should I declare the global variable ahm_irf Linux - Kernel 5 05-11-2007 12:36 PM
defining global variable in fedora kernel tuncausluer Linux - Software 0 12-31-2004 02:53 PM
Defining Global variable in Fedora Kernel tuncausluer Fedora - Installation 0 12-31-2004 02:38 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

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