need help on loading kernel kernel modules using vmware

shiv garg shivgarg5676 at hotmail.com
Wed Dec 11 13:34:27 UTC 2013


hello friends i am trying to load kernel module on ubuntu installed on vmware.
module is as follows
#include<linux/init.h>#include<linux/module.h>MODULE_LICENSE("GPL");
static int start(void){printk("<1> shiv");return 0;}
static void end(void){printk("<1>  END OF MODULE");
}
module_init(start);module_exit(end);



and my Makefile is
obj-m += module.o
all:	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modulesclean:	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean


when i load this module on ubuntu installed on vmwarer using insmod utility it shows error invalid parametersn when i load this module on ubuntu installed on hard disk every thing happened fine..i used insmod command as followsinsmod ./module.ko
due to some reasons i can not install ubuntu on my hard diskpls help me ... 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20131211/56e5e896/attachment.html>


More information about the kernel-team mailing list