-salut ,j'ais écrit un modu kernel qui affiche "hello word" voici code source :
#include <linux/kernel.h>
#include <linux/modu.h>
#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif
static int init_modu( void )
{
printk("Hello, world - this is the kernel speaking\n");
return 0;
}
static void canup_modu( void )
{
printk("Short is the life of a kernel modu\n");
}
-je s complié avec :
chmod +x nom du fichier #
./nom du fichier
-mais ça ne marche pas,svp quelqun peut me montré comment compilé.







Répondre avec citation
Partager