Re: linux/module.h does not exist

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 22, 2010 at 12:41, Tapas Mishra <mightydreams@xxxxxxxxx> wrote:
>
> Following is the program for which it was Makefile I am mentioning it
> here for the sake of clarity so that you dont have to read first post
>
> #include <linux/kernel.h>
> #include <sys/syscall.h>
> #include <linux/module.h>
> extern void *sys_table[];
^^^

uhum? AFAIK sys call table is not exported in 2.6.x.... so even if
your code is perfectly compiled and produced valid .ko kernel module,
I doubt it will work.

Unless I missed something in recent development....

Regarding the missing __NR_exit, I think you forgot to include
asm/unistd.h. And try to include asm/syscalls

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux