Hi,
i was trying this with the hello world module
-8---
/*
* hello-1.c - The simplest kernel module.
*/
#include linux/module.h /* Needed by all modules */
#include linux/kernel.h /* Needed for KERN_INFO */
int init_module(void)
{
printk(KERN_INFO Hello world 1.\n);
On 6/3/08, Wenhua Zhao [EMAIL PROTECTED] wrote:
Hi,
i was trying this with the hello world module
-8---
/*
* hello-1.c - The simplest kernel module.
*/
#include linux/module.h /* Needed by all modules */
#include linux/kernel.h /* Needed for KERN_INFO */
int
On 03-06-08 07:07, Adil Mujeeb wrote:
But when i try to get modinfo, its fail to find the module:-
localhost:/home/adil/module/sample # insmod hello-1.ko
localhost:/home/adil/module/sample # modinfo hello-1
modinfo: could not find module hello-1
localhost:/home/adil/module/sample # lsmod |
On 6/3/08, Rene Herman [EMAIL PROTECTED] wrote:
On 03-06-08 07:07, Adil Mujeeb wrote:
But when i try to get modinfo, its fail to find the module:-
localhost:/home/adil/module/sample # insmod hello-1.ko
localhost:/home/adil/module/sample # modinfo hello-1
modinfo: could not find module
On 4/26/08, Robert P. J. Day [EMAIL PROTECTED] wrote:
On Fri, 25 Apr 2008, Rene Herman wrote:
On 25-04-08 21:02, Robert P. J. Day wrote:
oh man, i'm going to sound dumb by asking this, but what precisely is
it that embeds that macro value in the module?
MODULE_STACKSIZE gets added
i'm following thru the code for what happens if you select 4K
stacks, and i noticed this at the bottom of include/asm-x86/module.h:
#ifdef CONFIG_X86_32
# ifdef CONFIG_4KSTACKS
# define MODULE_STACKSIZE 4KSTACKS
# else
# define MODULE_STACKSIZE
# endif
# define MODULE_ARCH_VERMAGIC
On Fri, 25 Apr 2008, Rene Herman wrote:
On 25-04-08 20:06, Robert P. J. Day wrote:
$ grep -rw MODULE_STACKSIZE *
include/asm-x86/module.h:# define MODULE_STACKSIZE 4KSTACKS
include/asm-x86/module.h:# define MODULE_STACKSIZE
include/asm-x86/module.h:# define MODULE_ARCH_VERMAGIC
On 25-04-08 21:02, Robert P. J. Day wrote:
oh man, i'm going to sound dumb by asking this, but what precisely is
it that embeds that macro value in the module?
MODULE_STACKSIZE gets added to VERMAGIC_STRING (linux/vermagic.h) as part of
MODULE_ARCH_VERMAGIC (asm/module.h). VERMAGIC_STRING is