LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-18-2008, 10:06 AM   #1
crunchyblack
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Rep: Reputation: 0
Defining Global Variables in the kernel


Hey guys,

A very noob question I'm sure, but after searching the forums I was unable to find results. I have made a few new system calls, but in order to get them working properly I need to create a few variables that are global to the kernel, so I can modify then in my system calls and change values in other kernel files, such as, sched.c and fork.c. In which file would I declare these globals? I have been trying many different solutions for a while now and nothing seems to work / compile. Any help would be greatly appreciated.
 
Old 10-18-2008, 01:53 PM   #2
crunchyblack
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Original Poster
Rep: Reputation: 0
bump - help plz =(
 
Old 10-18-2008, 02:14 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
While we don't have an explicit rule against bumping
anymore, it's still considered rude, and it's not very
prudent to do - namely because you a) take yourself of
the 0-reply list which many of our members use to track
down posts, and b) because you disable the auto-bump,
which bubbles your posts to the top twice.



Cheers,
Tink
 
Old 10-18-2008, 02:56 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-20-2008, 10:52 AM   #5
crunchyblack
LQ Newbie
 
Registered: Sep 2008
Posts: 13

Original Poster
Rep: Reputation: 0
posting in other thread

Last edited by crunchyblack; 10-20-2008 at 10:54 AM.
 
  


Reply

Tags
kernel, programming


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
defining environmental variables? sarayazdani LinuxQuestions.org Member Intro 1 08-05-2008 04:08 AM
g++ complains about global variables copolii Programming 3 09-18-2005 08:43 PM
Local vs Global variables wujee Programming 1 03-11-2005 11:43 PM
defining global variable in fedora kernel tuncausluer Linux - Software 0 12-31-2004 01:53 PM
Defining Global variable in Fedora Kernel tuncausluer Fedora - Installation 0 12-31-2004 01:38 PM


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