From: Flavio <ff@member.org>
To: p@dirac.org
Cc: gcc-help@gcc.gnu.org
Subject: Thank you for doc on Linux Kernel Module Programming Guide
Date: Tue, 13 Jun 2006 16:21:00 -0000 [thread overview]
Message-ID: <fa7d16350606130921s2e3e3ffyae67c2b62684a6e0@mail.gmail.com> (raw)
Hello Peter,
Just wanted to thank you very much for your document on creating linux
kernel modules. ( http://www.tldp.org/LDP/lkmpg/2.6/html/x323.html )
You have no idea how helpful that doc was to me!
Thanks!!!!
-- ff@member.org
PS. Minor errata. When I tested the code for hello-5.c I see that there is
a mistake on how module_param_array is being used:
module_param_array(myintArray, int, &arr_argc, 0000);
It seems to me that we should not pass in the address of arr_argc
but the arr_argc itself. The macro is already de-referencing it:
module_param_array(myintArray, int, arr_argc, 0000);
Unrolled Macro produces:
static struct kparam_array __param_arr_myintArray = {
(sizeof(myintArray) / sizeof((myintArray)[0])),
&arr_argc, <======================== '&' put in by the macro!
param_set_int,
param_get_int,
sizeof(myintArray[0]),
myintArray };
reply other threads:[~2006-06-13 16:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fa7d16350606130921s2e3e3ffyae67c2b62684a6e0@mail.gmail.com \
--to=ff@member.org \
--cc=gcc-help@gcc.gnu.org \
--cc=p@dirac.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).