I have downloaded kernel 2.6.38-5 to add a system call.
I did the following steps:
1. I have added my system call to system call table
2. i have added the system cal number in
3. I have added the prototype to syscalls.h
4. here is my system call
5. I have edited the Makfiles
Now after compilation when i use it via syscall() it gives me "BAD ADDRESS" with errno set to 14.
What should i do?
---------- Post updated 2011-05-15 at 04:06 AM ---------- Previous update was 2011-05-14 at 08:39 PM ----------
On x86, system call number 244 is already taken by get_thread_area(), which takes as first argument a pointer to a struct user_desc:
You are passing a number instead of a pointer, the kernel is trying to interpret it as a pointer, it's determining that it points outside of your process, and returning -EFAULT.
According to this file
the only system call number available is 251. so i changed my system call number to 251.
But this time it says: Function not implemented with errno = 38
I'm not sure we have too many kernel hackers on this forum. That being said, I don't see the step were you installed your new kernel. Also, as I understand it, the better way to add system calls is through the module interface, and better yet, not to add them at all.
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.
Please review the rules, which you agreed to when you registered, if you have not already done so.
More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.
Dear all,
I am trying to install Sybase ASE 12.5.4 on a Sun OS Solaris 11.2 (sparcv9) machine but I am getting the following messages when launching the setup file :
-bash-4.1$ ./setup
InstallShield Wizard
Initializing InstallShield Wizard...
Searching for Java(tm) Virtual Machine...... (2 Replies)
Hi Experts,
We want to add the 'from' email address to mailx command in all our linux script. After searching this site I am able to find the command '-- -f' to add the from the email address. Bu the problem is our from email address is :- "Proper Support Name <support@company.com>"
Now when I... (6 Replies)
Hi,
I wanna add my own system call to Fedora 18 kernel 3.8.2.
From kernel 3.3 I heard there is a new system to add system calls.
So where i can find a guides ?
I wanna print this text: "Hello world!" in terminal, not dmesg. (4 Replies)
I'm trying to add a custom ("Hello world" :o) system call.
In /usr/src/linux/hello/ I put simple hello.c ...#include "linux/linkage.h" // for linking a system call
#include "linux/kernel.h" // for "printk"
asmlinkage int sys_hello()
{
printk(KERN_ALERT "Hello!");
return 1;
}... and in... (5 Replies)
HI All,
My interface card has failed.If i am giving the command to uplumb it i am getting an error.
ce401001: flags=219040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED,CoS> mtu 1500 index 3
inet 10.188.24.18 netmask ffffffc0 broadcast 10.188.24.63
# ifconfig... (2 Replies)
Hi all, we have a 280R with Solaris 10 11/06 and Oracle 10 installed.
For unknown reason the system become instable and after a reboot (init 6)
we got the message to run fsck manually. We did the check many time and now we have this result:
# fsck
/dev/md/dsk/d0 IS CURRENTLY MOUNTED... (5 Replies)
I am trying to write a C server code that will handle WWW request from client. i am very new to socket programming. i can very well setup the socket...but when an incomin request comes from a browser, the progrom exits with an error message "Bad address". the following is the code. please do help... (1 Reply)
Hi,
Ho do I differentiate system call from library call?
for example if I am using chmod , how do I find out if it is a system call or library call?
Thanks
Muru (2 Replies)
hi all
iam trying to set my eri0 interface but with little luck .
when i set the ip using ipconfig i always get "bad adress"..
moreover when i use ifconfig eri0 i can notice that the inet is 0.0.0.0 and the netmask 0
i am runnig solaris 9 on sparc .
any helpis highly appreciated ... ... (2 Replies)