How does one add a system call to user mode linux?
I followed the instructions here:=
Instead of using his stub(which dosent work) I used this one:
syscall(253); // I assigned number 253 to my system call in unistd.h
The program compiles but dosent print out the the output from the printk()
Has anybody successfully installed a system call in uml?
On Saturday 03 February 2007 06:36, Mohammad Jawwad wrote:
> How does one add a system call to user mode linux?
> I followed the instructions here:=
It's from 2002, (I've seen this in the homepage), it's outdated. No
information about kernel development lasts for so long.
Those instructions could be meaningful for 2.4, and _maybe_ early 2.6 UML
kernels (I didn't look at the details).
Which UML version did you use?
These days, to add a syscall to a 32bit UML you must patch x86 sources, and
for a 64bit UML, the x86-64 sources. There will be more info on doing that in
various websites.So look for info on doing that.
Files to modify are, at least:
Those files are included/reused by UML - this was done to make it easier to
keep syscall tables in sync.
Also, syscall 253 is already assigned these days.
> The program compiles but dosent print out the the output from the printk()
> Has anybody successfully installed a system call in uml?
Inform me of my mistakes, so I can add them to my list!
Paolo Giarrusso, aka Blaisorblade
Chiacchiera con i tuoi amici in tempo reale!