calling sys_ipc with linux 2.6

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

 



Hello, I'm developing a kernel module with linux 2.6, and I must call sys_ipc()
to create a semaphore...but the sys_call_table[] is not exported in linux 2.6
and I have "hacked" the sys_ipc with a tricks:

linux/arch/i386/kernel/sys_i386.c:

sys_ipc(...){
...
...
}

EXPORT_SYMBOL(sys_ipc);

but it's not portable!

There is another mode to call the sys_ipc (or another syscall) with a more
elegant (and portable) way?

Thanks

-- 
Simone Vellei <simone_vellei at users.sourceforge.net>
http://www.cs.unibo.it/~vellei
ICQ #68494057

GnuPG PubKey: http://www.cs.unibo.it/~vellei/key.txt

Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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