RE: [LIP] System call

T Roy <troylinux-/[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Message-ID <[email protected]>
--- "Gaurav Dhiman , Gurgaon"
<[email protected]> wrote:
> 
> Hi Suresh,
> 
> You need to declare the sys_call_table array as
> external variable as it is
> defines in Linux Kernel Code. I am pasting a sample
> code for module which
> replaces the open system call with user function
> defined in module. This
> user defined function later on calls the actual open
> system call, its just
> like putting a block in between the chain. Please
> see the following code.
> 
> Declare sys_call_table as extern variable in you
> module code
> 
> extern void *sys_call_table[];

sys_call_table[] is not exported from kern
2.4.X...atleast 2.4.18 doesnot export it. so u cant
change a system call that way.

> 
> Regards,
> Gaurav.
> 


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.