lkml.org 
[lkml]   [2007]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/6] syslets: add indirect args
Date
This adds the syslet indirect args to the indirect_params union.

This is broken, but it lets us simply demonstrate the rest of the syslet
universe around the indirect argument passing convention.

A caller could well want to perform a syscall that uses indirect arguments as a
syscall. Maybe we turn indirect_params into a struct that contains a union for
arguments which can never be used concurrently. This needs wider discussion.

Signed-off-by: Zach Brown <zach.brown@oracle.com>

diff --git a/include/linux/indirect.h b/include/linux/indirect.h
index 97f9ac4..5d5abd7 100644
--- a/include/linux/indirect.h
+++ b/include/linux/indirect.h
@@ -3,6 +3,7 @@
#define _LINUX_INDIRECT_H

#include <asm/indirect.h>
+#include <linux/syslet-abi.h>


/* IMPORTANT:
@@ -14,6 +15,7 @@ union indirect_params {
struct {
int flags;
} file_flags;
+ struct syslet_args syslet;
};

#define INDIRECT_PARAM(set, name) current->indirect_params.set.name
--
1.5.2.2


\
 
 \ /
  Last update: 2007-12-07 00:25    [W:1.641 / U:1.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site