Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am a new linux user. i want to download linux kernel source code for understanding about system calls. At http://www.kernel.org/ i am getting several things. i am not getting what to download. i want entry.s file. can any one help me??
If you can't get it from kernel.org (normally), you're looking for the wrong thing. *Which* entry.S (note the capital) would you be looking for ?. And what did you download ?.
If you can't get it from kernel.org (normally), you're looking for the wrong thing. *Which* entry.S (note the capital) would you be looking for ?. And what did you download ?.
Perhaps you are jumping in the deep end.
i am looking for this path...
linux/arch/i386/kernel/entry.S
i could not find i386.. actually, i have to add a new system call. i want help in that. whatever i studied till now, i found that i have to add number in unistd.h and in entry.S system calls table..( like this "ENTRY(sys_call_table)", i have to make another entry for my own system call. so, i want "entry.S".(its capital only). and, i read here only that for entry.S, i will need kernel source code. thats what, i want.. i am a new linux user. so, please, tell me what to do in detail. thatk you
@www.kernel.org in the home page, look for stable releases (currently they are 3.0.4, 2.6.39.4, 2.6.38.8, 2.6.37.6), click on Full Source and you can start to download the tarball. If you need older releases, look for longterm versions in the same page or check in the kernel archives here: ftp://ftp.kernel.org/pub/linux/kernel/v2.6/.
The source trees for the x86 environments were merged some time back.
Blindly following some (apparently now outdated) document will get you nowhere. You need to be able to keep up (and adapt) as the kernel changes - which it does constantly.
i want to make a new system call. i have edited all the files like
L/arch/x86/kernel/syscall_table_32.S
L/linux/include/asm-x86/unistd_32.h
L/include/linux/syscalls.h
i have changed the kernel makefile too
this is my system call
asmlinkage long sys_sysSum (int a, int b)
{
printk("calling sysSum\n");
return a+b;
}
bt, i am getting error
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘long’
what to do?? plz help..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.