Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756202AbXLFXVl (ORCPT ); Thu, 6 Dec 2007 18:21:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753617AbXLFXUZ (ORCPT ); Thu, 6 Dec 2007 18:20:25 -0500 Received: from tetsuo.zabbo.net ([207.173.201.20]:50762 "EHLO tetsuo.zabbo.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752924AbXLFXUV (ORCPT ); Thu, 6 Dec 2007 18:20:21 -0500 From: Zach Brown To: linux-kernel@vger.kernel.org Cc: Linus Torvalds , Ingo Molnar , Ulrich Drepper , Arjan van de Ven , Andrew Morton , Alan Cox , Evgeniy Polyakov , "David S. Miller" , Suparna Bhattacharya , Davide Libenzi , Jens Axboe , Thomas Gleixner , Dan Williams , Jeff Moyer , Simon Holm Thogersen , suresh.b.siddha@intel.com Subject: [PATCH 4/6] syslets: add indirect args Date: Thu, 6 Dec 2007 15:20:17 -0800 Message-Id: <1196983219370-git-send-email-zach.brown@oracle.com> X-Mailer: git-send-email 1.5.2.2 In-Reply-To: <11969832192868-git-send-email-zach.brown@oracle.com> References: <1196983219534-git-send-email-zach.brown@oracle.com> <11969832193635-git-send-email-zach.brown@oracle.com> <1196983219225-git-send-email-zach.brown@oracle.com> <11969832192868-git-send-email-zach.brown@oracle.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1217 Lines: 39 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 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 +#include /* 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/