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

Re: loading a module



On Fri, Oct 05, 2001 at 07:09:10PM +0530, C.Mohanasundaram wrote:
> my code is specific to intel platform
> I m using RedHat 7.1
> Actually this is what i did:
> I found that there are only 221 system calls in intel architecture
> so i just inserted a new call at the 222 the position of the sys_call_table.
> and it works.that module is specific for RedHat 7.1 which uses the 2.4.2-2 
> kernel in an intel machine.So i think it wont be a problem.
> please clarify if my assumptions are wrong.

That will work just fine, and you can put your syscall function in a
module, but you said you can't patch the main kernel, which you just did
in order to add your syscall to the sys_call_table.

So since you patched the kernel, you did not implement a "loadable"
syscall.

thanks,

greg k-h
-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/