Re: Booting Custom Kernel

2014-06-08 Thread Dipanjan Das
Dear Arindam, What I understand is, your system has two Ubuntu 12.04 installations side by side. Are you using any one of those two to compile the 2.6 kernel? If so, then executing *sudo make install* will copy the kernel vmlinux, initrd and System map files to /boot directory and trigger an

Linux Kernel compiles all the sources for a single a syscall

2014-06-07 Thread Dipanjan Das
Hi, I have compiled 3.4 kernel. Following the tutorial http://blog.techveda.org/adding-system-calls-linux-kernel-3-5-x/, I have updated syscall_64.tbl and triggered a 'make'. Now it has started elaborate compilation process, e.g. /fs/*.o sources. Shouldn't make only compile the changed files?

Invoking a system using syscall()

2014-06-06 Thread Dipanjan Das
Hi, I want to invoke getpid() system call using syscall. Here's the code snippet below. But, I can't find anything in dmesg|tail output. #include sys/types.h int main() { pid_tret = syscall(20); return 0; } ___ Kernelnewbies mailing list

Adding a syscall to specific kernel version

2014-06-05 Thread Dipanjan Das
Hi, I am trying to add a new syscall to kernel 3.4. So far I have tried at least four different tutorials from Internet. To my utter frustration, whatever source files they have referred in the tutorials, at least one of those is missing in all the cases. Why isn't there a consistent interface

Build error while building Linux Kernel 3.4

2014-06-03 Thread Dipanjan Das
Hi. I tried building Linux Kernel 3.4 from the source on Ubuntu 10.04 (Linux LAPTOP 2.6.32-21-generic #32-Ubuntu), gcc 4.4.3 on Intel processor. Here's the output: make[1]: Nothing to be done for `all'. make[1]: Nothing to be done for `relocs'. CHK include/linux/version.h CHK

How to test a syscall prior to compiling the kernel

2014-06-03 Thread Dipanjan Das
Hi, While adding a syscall, how do I test the syscall code itself? If I simply try to compile the C file individually, will the compiler be able find the includes? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

get_user() and put_user() missing in syscall list

2014-06-02 Thread Dipanjan Das
Hi, Here's an exhaustive list http://man7.org/linux/man-pages/man2/syscalls.2.html of Linux syscall, but I can't find get_user() and put_user() API. Why is it so? What am I missing? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: get_user() and put_user() missing in syscall list

2014-06-02 Thread Dipanjan Das
at 11:29 AM Dipanjan Das mail.dipanjan@gmail.com wrote: http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239 Hi, Here's an exhaustive list http://man7.org/linux/man-pages/man2/syscalls.2.html of Linux syscall, but I can't find get_user() and put_user() API. Why

How to call syscalls - SYSCALL or 0x80 interrupt

2014-06-02 Thread Dipanjan Das
Hi, I came across this discussion in StackExchange http://unix.stackexchange.com/questions/61891/linux-kernel-3-2-syscalls. Does anyone have any idea on this? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Man pages for Kernel API

2014-06-02 Thread Dipanjan Das
Hi, Like there is section #2 of man pages dedicated to syscalls, is there any official way to get the list of all supported Kernal APIs? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to call syscalls - SYSCALL or 0x80 interrupt

2014-06-02 Thread Dipanjan Das
Is in incorrect because the execve() call in the code is to the libc stub but not the actual syscall itself? On 3 June 2014 10:19, Greg KH g...@kroah.com wrote: On Tue, Jun 03, 2014 at 09:45:33AM +0530, Dipanjan Das wrote: Hi, I came across this discussion in StackExchange. Does anyone