* Adding custom system calls
@ 2014-03-20 17:25 arun kumar
2014-03-20 17:41 ` Greg KH
2014-03-20 20:17 ` Augusto Mecking Caringi
0 siblings, 2 replies; 5+ messages in thread
From: arun kumar @ 2014-03-20 17:25 UTC (permalink / raw)
To: kernelnewbies
How do i add a Custom system call to my Linux Kernel.
I want to know what files to modify and where to make the entries.
Arch : x86 64bit
Kernel: 3.12.14
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140320/195600bd/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Adding custom system calls
2014-03-20 17:25 Adding custom system calls arun kumar
@ 2014-03-20 17:41 ` Greg KH
[not found] ` <CABG0-3xY+_5jSPu-QG6ExbqWs45=TdLj3SU1z7EVq7UFMKQTQQ@mail.gmail.com>
2014-03-20 20:17 ` Augusto Mecking Caringi
1 sibling, 1 reply; 5+ messages in thread
From: Greg KH @ 2014-03-20 17:41 UTC (permalink / raw)
To: kernelnewbies
On Thu, Mar 20, 2014 at 10:55:42PM +0530, arun kumar wrote:
> How do i add a Custom system call to my Linux Kernel.
> I want to know what files to modify and where to make the entries.
That really sounds like a homework question...
Why do you want to do this, and what have you tried to do that has
failed?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Fwd: Adding custom system calls
[not found] ` <CABG0-3xY+_5jSPu-QG6ExbqWs45=TdLj3SU1z7EVq7UFMKQTQQ@mail.gmail.com>
@ 2014-03-20 19:20 ` arun kumar
2014-03-20 19:26 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: arun kumar @ 2014-03-20 19:20 UTC (permalink / raw)
To: kernelnewbies
yeah it does seems like a homework question..
I remember doing it on KernelVersion: 2.6 by modifying some files including
unistd.h writing a wrapper for it and writing the code for it. This
included some tweaking inside the /arch subtree of the kernel.
my intentions are entirely academic.
Currently working on kernelVer: 3.12.14
I am somewhat struggling to comprehend the changes (steep learning curve),
if you could guide me on what files to look for, i am sure i can find my
way from there.
and Thanks Greg.
--big fan :)
On Thu, Mar 20, 2014 at 11:11 PM, Greg KH <greg@kroah.com> wrote:
> On Thu, Mar 20, 2014 at 10:55:42PM +0530, arun kumar wrote:
> > How do i add a Custom system call to my Linux Kernel.
> > I want to know what files to modify and where to make the entries.
>
> That really sounds like a homework question...
>
> Why do you want to do this, and what have you tried to do that has
> failed?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140321/57059c82/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Fwd: Adding custom system calls
2014-03-20 19:20 ` Fwd: " arun kumar
@ 2014-03-20 19:26 ` Greg KH
0 siblings, 0 replies; 5+ messages in thread
From: Greg KH @ 2014-03-20 19:26 UTC (permalink / raw)
To: kernelnewbies
On Fri, Mar 21, 2014 at 12:50:27AM +0530, arun kumar wrote:
>
> yeah it does seems like a homework question..
>
> I remember doing it on KernelVersion: 2.6 by modifying some files including
> unistd.h writing a wrapper for it and writing the code for it. This included
> some tweaking inside the /arch subtree of the kernel.
> my intentions are entirely academic.
>
> Currently working on kernelVer: 3.12.14
> I am somewhat struggling to comprehend the changes (steep learning curve), if
> you could guide me on what files to look for, i am sure i can find my way from
> there.
There's loads of "how to add a syscall to Linux" tutorials out there,
what have you tried and what errors have you gotten when following them?
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Adding custom system calls
2014-03-20 17:25 Adding custom system calls arun kumar
2014-03-20 17:41 ` Greg KH
@ 2014-03-20 20:17 ` Augusto Mecking Caringi
1 sibling, 0 replies; 5+ messages in thread
From: Augusto Mecking Caringi @ 2014-03-20 20:17 UTC (permalink / raw)
To: kernelnewbies
On Thu, Mar 20, 2014 at 2:25 PM, arun kumar <arunkr.linux@gmail.com> wrote:
> How do i add a Custom system call to my Linux Kernel.
> I want to know what files to modify and where to make the entries.
>
> Arch : x86 64bit
> Kernel: 3.12.14
>
http://lmgtfy.com/?q=how+to+add+a+syscall+to+Linux+kernel+3.x
:)
--
Augusto Mecking Caringi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140320/997013c5/attachment.html
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-20 20:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-20 17:25 Adding custom system calls arun kumar
2014-03-20 17:41 ` Greg KH
[not found] ` <CABG0-3xY+_5jSPu-QG6ExbqWs45=TdLj3SU1z7EVq7UFMKQTQQ@mail.gmail.com>
2014-03-20 19:20 ` Fwd: " arun kumar
2014-03-20 19:26 ` Greg KH
2014-03-20 20:17 ` Augusto Mecking Caringi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).