linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv4 0/1] Document how to add a new syscall
@ 2015-08-10  8:00 David Drysdale
  2015-08-10  8:00 ` [PATCHv4 1/1] Documentation: describe how to add a system call David Drysdale
  0 siblings, 1 reply; 3+ messages in thread
From: David Drysdale @ 2015-08-10  8:00 UTC (permalink / raw)
  To: linux-api, Michael Kerrisk, Andrew Morton, Arnd Bergmann,
	Shuah Khan, Jonathan Corbet, Eric B Munson, Randy Dunlap,
	Cyril Hrubis, Josh Triplett, Pavel Machek
  Cc: Andrea Arcangeli, Thomas Gleixner, Ingo Molnar, H. Peter Anvin,
	Oleg Nesterov, Linus Torvalds, Greg Kroah-Hartman,
	Andy Lutomirski, Al Viro, Rusty Russell, Peter Zijlstra,
	Vivek Goyal, Alexei Starovoitov, David Herrmann,
	Theodore Ts'o, Kees Cook, Milosz Tanski, Fam Zheng,
	Mathieu Desnoyers, linux-doc, linux-kernel, David Drysdale

Given that I've gotten some of the details wrong in the past (and I've
seen others do likewise), I thought it might be helpful to collate the
best practices for adding a new system call to the kernel.

Apologies for the wide circulation -- I've tried to include folk who've
recently added or proposed a system call, as they're most likely to
have opinions on:
 - whether this a useful addition to Documentation/
 - whether the details of the advice are correct and complete.

Thanks,
David

(With thanks to Andrew Morton for looking over an initial draft, and to
Michael Kerrisk for suggesting several clarifications and additions.)


Changes since v3:
 - remove suggestion of adding new capability bit [Josh Triplett]
 - clarifications & typos [Pavel Machek]

Changes since v2:
 - add struct-with-size as option for extensibility [Ingo Molnar]
 - mention LTP and xfstests [Cyril Hrubis]
 - always use file descriptors as handles for kernel objects [Josh Triplett]
 - consider poll(2) semantics for new file descriptors [Josh Triplett]
 - use a CONFIG option to control new functionality [Josh Triplett]
 - check ptrace_may_access() for process manipulation [Josh Triplett]
 - various minor markups [Josh Triplett]

Changes since v1:
 - added paragraph on build requirements to Testing section [Shuah Khan,
   Peter Zijlstra]
 - various text clarifications [Kees Cook]
 - added Reviewed-by markers


David Drysdale (1):
  Documentation: describe how to add a system call

 Documentation/adding-syscalls.txt | 527 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 527 insertions(+)
 create mode 100644 Documentation/adding-syscalls.txt

--
2.2.0.rc0.207.ga3a616c

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-08-13 23:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-10  8:00 [PATCHv4 0/1] Document how to add a new syscall David Drysdale
2015-08-10  8:00 ` [PATCHv4 1/1] Documentation: describe how to add a system call David Drysdale
     [not found]   ` <1439193644-4773-2-git-send-email-drysdale-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
2015-08-13 23:53     ` Jonathan Corbet

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).