[lkml]   [2006]   [Jun]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectNewbie questions on the kernel programming
Hi all,

I am learning linux kernel programming starting from "The Linux Kernel
Module Programming Guide"( . I have
background in Windows DDK, but I am confused on the following topics.
Can anyone here give me some hints.

1) MODULE_PARM() macro (
static short int myshort = 1;
static int myint = 420;
static long int mylong = 9999;
static char *mystring = "blah";

MODULE_PARM (myshort, "h");
MODULE_PARM (myint, "i");
MODULE_PARM (mylong, "l");
MODULE_PARM (mystring, "s");

In the sample code, it is said the MODULE_PARM macro can allow
arguments to be passed to the driver module. But how?

2) Character Device Drivers(
I can not catch the key points in this section. What should I learn
from the "chardev.c" sample? How can I install the module as a device?
How can I call the functions in the driver?

3) The /proc File System(
What's the main points in the section. How does the /proc file system
matter linux kernel programming?

Many thanks!

Liang Chen

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-06-19 11:32    [W:0.031 / U:0.908 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site