LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-19-2010, 07:58 PM   #1
AnandM
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
LKM Global Data


Hi:

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, 08:43 PM   #2
nini09
Member
 
Registered: Apr 2009
Posts: 991

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


Reply


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


All times are GMT -5. The time now is 04:55 AM.

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