Did you know LQ has a Linux Hardware Compatibility List?
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 05-19-2010, 08:58 PM   #1
LQ Newbie
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
LKM Global Data


I have been trying to define a Global Char variable array that would
be used by different functions within the same LKM

char * char_array[100]

Initialization of the array works. But when I come back to it by another
LKM function (after executing the main-line Kernel), I find that the
initialization has been over-written !

The main-line kernel calls the LKM by call-back functions that are initialized by the LKM init ... btw. One of these functions initializes the char_array, another uses it ...that is the basic idea.

Is the LKM stack /memory area fair game (i.e. used by the main-line kernel) once the LKM that initialized the char_array returns ?

Any ideas please ? Thanks
Old 05-19-2010, 09:43 PM   #2
Senior Member
Registered: Apr 2009
Posts: 1,235

Rep: Reputation: 115Reputation: 115
Can you attach more code, such as initializing and using code of char_array?


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
LXer: OpenClinica Global Conference to Bring Together Global Community for Open Sourc LXer Syndicated Linux News 0 01-08-2010 11:50 AM
[SOLVED] LKM Global Data? yaplej Linux - Kernel 6 10-01-2009 07:22 PM
How to check the cpu utilization on all non global zones from Global Zone rajaniyer123 Solaris / OpenSolaris 3 10-09-2008 02:43 AM
LKM talking to another LKM? Ljunge Programming 4 11-13-2007 02:29 PM
LXer: Evergrid Launches Global Resource Management Solution for Next Generation Data Centers LXer Syndicated Linux News 0 06-12-2007 06:31 PM

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