hi,
I am trying to add a new custom system call to my kernel.
kernel version 3.4.0.
can anyone give a detailed step by step instruction on how to do it.
hi,
I am trying to add a new custom system call to my kernel.
kernel version 3.4.0.
can anyone give a detailed step by step instruction on how to do it.
Not exactly a task for an absolute beginner?
Thread moved to Programming Talk.
Forum DOs and DON'Ts
Please use CODE tags
Including your email address in a post is not recommended
My Blog
You can find the below links useful , however it assumes you are familiar with bulding kernel .
http://www.cs.brynmawr.edu/cs355/how...ystemcall.html
http://tldp.org/HOWTO/html_single/Im...inux-2.6-i386/
“Progress is made by lazy men looking for easier ways to do things”
— Robert A. Heinlein
hi,
sorry for posting it in the absolute beginner.I am not a beginner.And i got how to do it.thanks
Forum DOs and DON'Ts
Please use CODE tags
Including your email address in a post is not recommended
My Blog
sorry for stepping by - You do realise that this thread will step over in searches for "how to add a new custom system call to Linux kernel"?
So if you found an immediate and nice solution: it is too much to ask you to share it with us?
Thanks!
hi,
I would love to share it.
let the place where you downloaded the kernel be called linux-3.4
First add the system call code to linux-3.4/fs/open.c
and then add your system call number and name in the file syscall_32.tbl which will be in linux-3.4/arch/x86/syscalls/syscall_32.tbl
then build your kernel and boot into it.
The directories and files mentioned were not present in my kernel.the paths were different and in some files were not present.
So the method i had mentioned worked.To add systems call in older kernels like 2.6 leads to many make errors.gcc 4.6 compilers are not compatible with older kernels
Bookmarks