aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/trap.c
diff options
context:
space:
mode:
authorThomas Meyer <thomas@m3y3r.de>2017-07-05 18:34:04 -0400
committerRichard Weinberger <richard@nod.at>2017-07-07 04:53:38 -0400
commit88af23381ac3a04e35974d9ece422c2b6ebe7775 (patch)
tree225ab4d10f6b2addd0d950212cb635ce01477887 /arch/um/kernel/trap.c
parent171fa6928bcdf72372f98884b0abb93ad9b2e673 (diff)
um: Add kerneldoc for segv_handler
Signed-off-by: Thomas Meyer <thomas@m3y3r.de> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/kernel/trap.c')
-rw-r--r--arch/um/kernel/trap.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/um/kernel/trap.c b/arch/um/kernel/trap.c
index 59158871b9fc..4e6fcb32620f 100644
--- a/arch/um/kernel/trap.c
+++ b/arch/um/kernel/trap.c
@@ -183,6 +183,16 @@ void fatal_sigsegv(void)
183 os_dump_core(); 183 os_dump_core();
184} 184}
185 185
186/**
187 * segv_handler() - the SIGSEGV handler
188 * @sig: the signal number
189 * @unused_si: the signal info struct; unused in this handler
190 * @regs: the ptrace register information
191 *
192 * The handler first extracts the faultinfo from the UML ptrace regs struct.
193 * If the userfault did not happen in an UML userspace process, bad_segv is called.
194 * Otherwise the signal did happen in a cloned userspace process, handle it.
195 */
186void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs) 196void segv_handler(int sig, struct siginfo *unused_si, struct uml_pt_regs *regs)
187{ 197{
188 struct faultinfo * fi = UPT_FAULTINFO(regs); 198 struct faultinfo * fi = UPT_FAULTINFO(regs);