Re: error no inside a module

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

 



On Sat, 2006-02-11 at 14:23 +0530, Saumender Dash wrote:
> Hi,
> >what is exactly what you wanna do ? do you wanna know the returned
> value by a system call that a certain process or user does by means of
> an LKM ? i.e do you wanna make an LKM that hooks the return values of
> a syscalls ? 
>  
> I have a LKM which overrides a syscall, now I want to get the error no
> returned by the orginal syscall.
> (For example: In AIX seterror() and geterror() kernel fuctions set the
> error no in the error no table and reads the table
> for the appropriate error returned by the call) I want a similar
> mechanism in linux.
>  


overriding syscalls is considered evil usually, and might not be
needed... but you forgot to post the URL to your module source so we
can't really help you by suggesting alternatives!

> 


--
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