sys_semget() can be invoked with in the kernel and for that you may not need a system call table entry. However, the symbol (sys_semget()) should be usable with in the kernel. For the same you need to declare the same using EXPORT_SYMBOLS(sys_semget) in sem.h or any of the include files. For more on EXPORT_SYMBOLS() refer kernelnewbies.org or Linux Device Driver-2 by Rubini. Thanks, Sumit
On Thu, Mar 07, 2002 at 05:44:19AM -0800, sudhakar rajashekhara wrote: > I am facing lot of problems with insmod system call. Remember that insmod is just a tool, not a system call. The invoked system call is create_module. > It is giving me unresolved symbols error for semget > and semop. I used sys_semget and sys_semop instead of semget and semop are system calls. Good. But if I execute: grep -r __NR_semget /lib/modules/`uname -r`/build/include/* on my system I get this: /lib/modules/2.4.17-4GB/build/include/asm-alpha/unistd.h:#define __NR_semget205 /lib/modules/2.4.17-4GB/build/include/asm-ia64/unistd.h:#define __NR_semget1106 /lib/modules/2.4.17-4GB/build/include/asm-parisc/unistd.h:#define __NR_semget (__NR_Linux + 186) So I argue that for i386, you don't have these calls. People who know the problem better, feels free to correct me if I was wrong. Regards -- $>cd /pub $>more beer (0> //\ Perego Paolo <p_perego@modiano.com> - www.sikurezza.org/angel V_/_ 'It's seems the hardest life I've never known' I'm Linux drow 2.4.17-4GB - SuSE Linux 7.3 (i386) powered.
begin:vcard n:Agarwal;Sumit fn:Sumit Agarwal tel;cell:+919845205210 tel;fax:+91-80-5732696 tel;home:+919845205210 tel;work:+91-805732296 / 93 extn. 5243 url:www.wipro.com org:Wipro Technologies;SIDC, Embedded and Internet Division adr:;;Wipro Technologies, Chamundi Complex, No.26, Hosur Main Road, Bommanahalli;Bangalore;Karnataka;560068;INDIA version:2.1 email;internet:sumit.agarwal@wipro.com title:Senior Software Engineer end:vcard
**************************Disclaimer************************************ Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. ********************************************************************