summaryrefslogtreecommitdiffstats
path: root/sys/sys/user.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2013-11-26 19:47:09 +0000
committerkib <kib@FreeBSD.org>2013-11-26 19:47:09 +0000
commit0123c148533082914ef44b0bb419e0019290c1dd (patch)
treea52493ff0976a3625200eae1a8ffafad6464b126 /sys/sys/user.h
parentf70df6871ba3ce383f1fcbdeffd567199e0edbe9 (diff)
downloadFreeBSD-src-0123c148533082914ef44b0bb419e0019290c1dd.zip
FreeBSD-src-0123c148533082914ef44b0bb419e0019290c1dd.tar.gz
Add an kinfo sysctl to retrieve signal trampoline location for the
given process. Note that the correctness of the trampoline length returned for ABIs which do not use shared page depends on the correctness of the struct sysvec sv_szsigcodebase member, which will be fixed on as-need basis. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'sys/sys/user.h')
-rw-r--r--sys/sys/user.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h
index d2e2b6e..e926fe8 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -498,6 +498,12 @@ struct kinfo_kstack {
int _kkst_ispare[16]; /* Space for more stuff. */
};
+struct kinfo_sigtramp {
+ void *ksigtramp_start;
+ void *ksigtramp_end;
+ void *ksigtramp_spare[4];
+};
+
#ifdef _KERNEL
/* Flags for kern_proc_out function. */
#define KERN_PROC_NOTHREADS 0x1
OpenPOWER on IntegriCloud