Linux Today: Linux News On Internet Time.
Search Linux Today
search.internet.com
Linux News Sections:  Blog -  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Preferences
Contribute
Link to Us
Search
Linux Jobs

Become a Marketplace Partner

internet.commerce
Be a Commerce Partner














The Linux Channel at internet.com
Linux Today
Enterprise Linux Today
Apache Today
JustLinux.com
Linux Planet
PHPBuilder
All Linux Devices
Technology Jobs

JustTechJobs.com

LinuxToday Newsletters
Server Daily
IT Management Daily
Subscribe News
Subscribe PR
Subscribe Security

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

 







Current Newswire:

Using a Bamboo Tablet with Ubuntu 10.04

Clonezilla Live

Are You Intimidated By Breakfast Cereal?

Announcing WriteType 1.0.98

How to install PC-BSD on an encrypted ZFS file system

Ubuntu 10.10 beta arrives with new netbook UI

Webcam server on Linux 2

SECURITY: PS3 hack source code published

Oracle offers student coders free access to JavaOne

Your Linux system keeps falling and it can't get up




UNIX Systems Administrator (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume
:The Kernel Newbie Corner: Everything You Wanted to Know About Module Parameters
The Kernel Newbie Corner: Everything You Wanted to Know About Module Parameters
Jul 15, 2009, 18 :02 UTC (0 Talkback[s]) (2410 reads)

(Other stories by Rob Day)

[ Thanks to LinuxScribe for this link. ]

"So What Do We Do With "Parameters?" As the name suggests, module parameters give us the ability to pass a value of some kind to a module upon loading, and also to examine its value while the module is loaded and running, and even change it on the fly if we want. Here's the simple change we would make to the code above (let's call the new source file p2.c):
... 
 #include 
 #include   // add this
 ...
 static int answer = 42 ;
 module_param(answer, int, 0644);
 MODULE_PARM_DESC(answer, "Life, the universe, etc.");
 ...

"Now recompile your module and, without even loading it, let's discuss what just happened above:"

Complete Story

Related Stories:
Kernel Log: progress with free graphics drivers, three new stable kernels(Jul 09, 2009)
The Kernel Newbie Corner: Loadable Kernel Modules, Coming and Going(Jul 08, 2009)
The Kernel Newbie Corner: Your First Loadable Kernel Module, Part Deux(Jul 02, 2009)
The Kernel Newbie Corner: Your First Loadable Kernel Module(Jul 02, 2009)
Will Tux3 Soon Enter The Mainline Kernel?(Feb 24, 2009)
Linux 2.6 kernel Storage Tuning Tips(Jan 19, 2009)
Keeping the Kernel Klean(Oct 14, 2008)
Kernel Developers Issue Joint Statement on Device Drivers(Jun 23, 2008)



No talkbacks posted.
  Home | Search Talkbacks | Customize View    Top of Page  



Enter your comments below:

* Your Name:

* Your Email Address:

* Subject:

CC: [will also send this talkback to an E-Mail address]

* Comments:

Tags allowed:<I>,<B> and <U>. See our talkback-policy for more about talkback content.

Fields marked with * are required!






..............................




All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux, Apache and PHP