Re: using sys_mknod in init_module

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

 



On 5/17/06, Manjunath Naik <peter.desouzain@xxxxxxxxx> wrote:
  Hi all,

     It looks like to me "sys_call_table" is not exported to kernel.
If it is true  then how to export it else how to solve this problem.

   Currently I am manually creating the device file using mknod in shell.

Thanks
Manjunath Naik

in kernel 2.6 if you would like to have acces to the system calls table you'll have to modify the source code and recompile the kernel

if you have a PC (x86 architecture) you'll have to complete the file
arch/i386/kernel/i386_ksyms.c with the following lines
	extern void* sys_call_table[];
EXPORT_SYMBOL(sys_call_table);

Happy hacking,
Razvan

--
Computers don't make mistakes... What they do they do on purpose!

[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