Re: How to replace a kernel built-in function

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

 



Xiangfei Jia wrote:

I want to replace a kernel built-in function, so the function can perform some special tasks when the kernel calls the function. I want to know how to write a module to over-write the built-in kernel functions. For example, I wan to replace the swapping funtion "rw_swap_page()". How can I do this? (I know how to replace a default system call, but not this built-in function.)

Thanks!

Fei


Folks - pls reread the question - its a built-in hes looking to replace, not a system-call

It may be a bit hacky, but its certainly a different kind of evil than hijacking
an interface to user-land

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