OpenVZ Forum


Home » Mailing lists » Devel » [PATCH -utrace] Move utrace into task_struct
Re: [PATCH -utrace] Move utrace into task_struct [message #12549 is a reply to message #12540] Wed, 02 May 2007 11:53 Go to previous messageGo to previous message
Jan Engelhardt is currently offline  Jan Engelhardt
Messages: 18
Registered: August 2006
Junior Member
On May 2 2007 15:32, Alexey Dobriyan wrote:
>--- a/include/linux/utrace.h
>+++ b/include/linux/utrace.h
>@@ -50,11 +50,30 @@ #include <linux/sched.h>
>
> struct linux_binprm;
> struct pt_regs;
>-struct utrace;
>+struct task_struct;
> struct utrace_signal;
> struct utrace_regset;
> struct utrace_regset_view;
>
>+#ifdef CONFIG_UTRACE
>+struct utrace {
>+ unsigned long flags;
>+ union {
>+ struct {
>+ struct task_struct *cloning;
>+ struct utrace_signal *signal;
>+ } live;
>+ struct {
>+ unsigned long flags;
>+ } exit;
>+ } u;

You can have anonymous unions. (Though that won't work with
static initializers - are there any?)


Jan
--
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [patch 049/455] Merge sys_clone()/sys_unshare() nsproxy and namespace handling
Next Topic: [PATCH 0/9] Containers (V9): Generic Process Containers
Goto Forum:
  


Current Time: Sat Sep 20 18:21:57 GMT 2025

Total time taken to generate the page: 0.06358 seconds