From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22901 invoked by alias); 13 Jun 2006 16:21:47 -0000 Received: (qmail 22874 invoked by uid 22791); 13 Jun 2006 16:21:47 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.170) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 13 Jun 2006 16:21:45 +0000 Received: by ug-out-1314.google.com with SMTP id c2so3051479ugf for ; Tue, 13 Jun 2006 09:21:42 -0700 (PDT) Received: by 10.66.232.9 with SMTP id e9mr120865ugh; Tue, 13 Jun 2006 09:21:42 -0700 (PDT) Received: by 10.67.92.18 with HTTP; Tue, 13 Jun 2006 09:21:42 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2006 16:21:00 -0000 From: Flavio To: p@dirac.org Subject: Thank you for doc on Linux Kernel Module Programming Guide Cc: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 5b303113cbad8b60 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-06/txt/msg00114.txt.bz2 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 };