* Adding a syscall to specific kernel version
@ 2014-06-05 12:40 Dipanjan Das
2014-06-05 14:22 ` Greg KH
2014-06-05 14:45 ` Valdis.Kletnieks at vt.edu
0 siblings, 2 replies; 3+ messages in thread
From: Dipanjan Das @ 2014-06-05 12:40 UTC (permalink / raw)
To: kernelnewbies
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 for addition of syscall across
kernel version?
How will I get to know the method for a specific kernel version officially?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140605/caed942d/attachment.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Adding a syscall to specific kernel version
2014-06-05 12:40 Adding a syscall to specific kernel version Dipanjan Das
@ 2014-06-05 14:22 ` Greg KH
2014-06-05 14:45 ` Valdis.Kletnieks at vt.edu
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2014-06-05 14:22 UTC (permalink / raw)
To: kernelnewbies
On Thu, Jun 05, 2014 at 06:10:06PM +0530, Dipanjan Das wrote:
>
> 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 for addition of syscall across kernel
> version?
Because code changes over time for valid reasons. If it didn't, the
project would be dead.
> How will I get to know the method for a specific kernel version officially?
What do you mean by "officially"?
You have the source to the kernel for all versions, that's the only
"official" thing to use.
Why are you using the 3.4 kernel, that one is obsolete for any new
development?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Adding a syscall to specific kernel version
2014-06-05 12:40 Adding a syscall to specific kernel version Dipanjan Das
2014-06-05 14:22 ` Greg KH
@ 2014-06-05 14:45 ` Valdis.Kletnieks at vt.edu
1 sibling, 0 replies; 3+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2014-06-05 14:45 UTC (permalink / raw)
To: kernelnewbies
On Thu, 05 Jun 2014 18:10:06 +0530, Dipanjan Das said:
> Why isn't there a consistent interface for addition of syscall across
> kernel version?
Please read Documentation/stable_api_nonsense.txt for the explanation.
> How will I get to know the method for a specific kernel version officially?
I'll be very blunt. Wiring up a new syscall is actually fairly easy and
straightforward. If you are having trouble figuring out how to do it when each
arch already has 200 to 300 already-done examples and 4 how-to tutorials off
the net, you're probably going to have even more trouble writing the actual
code of a syscall that does something more useful than doing a printk("Hello
world").
Sometimes, you need to admit to yourself that you're never going to
be a Formula One driver...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140605/c1bd1336/attachment.bin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-05 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-05 12:40 Adding a syscall to specific kernel version Dipanjan Das
2014-06-05 14:22 ` Greg KH
2014-06-05 14:45 ` Valdis.Kletnieks at vt.edu
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).