From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-2.v43.ch3.sourceforge.com ([172.29.43.192] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1d9v4X-0008LB-3b for user-mode-linux-devel@lists.sourceforge.net; Sun, 14 May 2017 15:04:37 +0000 Received: from www17.your-server.de ([213.133.104.17]) by sog-mx-2.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1d9v4V-0000jD-AZ for user-mode-linux-devel@lists.sourceforge.net; Sun, 14 May 2017 15:04:37 +0000 Received: from [95.222.29.91] (helo=localhost.localdomain) by www17.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.85_2) (envelope-from ) id 1d9v4O-0003r3-QR for user-mode-linux-devel@lists.sourceforge.net; Sun, 14 May 2017 17:04:28 +0200 Message-ID: <1494774209.13299.5.camel@m3y3r.de> From: Thomas Meyer Date: Sun, 14 May 2017 17:03:30 +0200 Mime-Version: 1.0 Subject: [uml-devel] [PATCH 2/3] um: Add kerneldoc for segv_handler List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============5991173170565579929==" Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: "user-mode-linux-devel@lists.sourceforge.net" --===============5991173170565579929== Content-Type: multipart/alternative; boundary="=-nlQBpO2yzmtsWlqpTHFb" --=-nlQBpO2yzmtsWlqpTHFb Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Meyer ---  arch/um/kernel/trap.c | 10 ++++++++++  1 file changed, 10 insertions(+) diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c index 5915887..4e6fcb3 100644 --- a/arch/um/kernel/trap.c +++ b/arch/um/kernel/trap.c @@ -183,6 +183,16 @@ void fatal_sigsegv(void)   os_dump_core();  }   +/** + * segv_handler() - the SIGSEGV handler + * @sig: the signal number + * @unused_si: the signal info struct; unused in this handler + * @regs: the ptrace register information + * + * The handler first extracts the faultinfo from the UML ptrace regs struct. + * If the userfault did not happen in an UML userspace process, bad_segv is called. + * Otherwise the signal did happen in a cloned userspace process, handle it. + */  void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs)  {   struct faultinfo * fi = UPT_FAULTINFO(regs); --=-nlQBpO2yzmtsWlqpTHFb Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Signed-off-by: Thomas Meyer <thomas@m3y3r.de>
---
 arch/um/kernel/trap.c | 10 ++++++++++
 1 file cha= nged, 10 insertions(+)

diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.= c
index= 5915887..4e6fcb3 100644
--- a/arch/um/kernel/trap.c
+++ b/arch/um/kernel/trap.c
@@ -183,6 +183= ,16 @@ void fatal_sigsegv(void)
  os_dump_core();
 }
 
+/**
+ * segv_handler() - the SIGSEGV handler
=
+ * @sig: the signal nu= mber
+ = * @unused_si: the signal info struct; unused in this handler
+ * @regs: the ptrace register information<= /div>
+ *
+ * The ha= ndler first extracts the faultinfo from the UML ptrace regs
struct.
+ * If the userfault did = not happen in an UML userspace process,=
bad_segv is called.
+ * Otherwise the signal did happ= en in a cloned userspace process,
handle it.
+ */
 void segv_handler(int sig, struct siginf= o *unused_si, struct
uml_pt_regs *regs)
 {
  struct faultinfo * fi =3D UPT_FAULTINFO(regs);
--=-nlQBpO2yzmtsWlqpTHFb-- --===============5991173170565579929== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --===============5991173170565579929== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel --===============5991173170565579929==--