From patchwork Mon May 4 17:57:45 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Haskins X-Patchwork-Id: 21758 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n44I3gAZ026230 for ; Mon, 4 May 2009 18:03:42 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757427AbZEDSDk (ORCPT ); Mon, 4 May 2009 14:03:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754685AbZEDSDj (ORCPT ); Mon, 4 May 2009 14:03:39 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:53184 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752911AbZEDSDh (ORCPT ); Mon, 4 May 2009 14:03:37 -0400 Received: from dev.haskins.net (prv-ext-foundry1.gns.novell.com [137.65.251.240]) by victor.provo.novell.com with ESMTP (TLS encrypted); Mon, 04 May 2009 12:03:27 -0600 Received: from dev.haskins.net (localhost [127.0.0.1]) by dev.haskins.net (Postfix) with ESMTP id EA53E4641E6; Mon, 4 May 2009 13:57:45 -0400 (EDT) From: Gregory Haskins Subject: [KVM PATCH v4 1/2] eventfd: export eventfd interfaces for module use To: kvm@vger.kernel.org Cc: viro@ZenIV.linux.org.uk, linux-kernel@vger.kernel.org, avi@redhat.com, davidel@xmailserver.org Date: Mon, 04 May 2009 13:57:45 -0400 Message-ID: <20090504175745.26758.94086.stgit@dev.haskins.net> In-Reply-To: <20090504175657.26758.12503.stgit@dev.haskins.net> References: <20090504175657.26758.12503.stgit@dev.haskins.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org We will re-use eventfd for implmenting irqfd later in the series, and the irqfd users will potentially live in modules. Signed-off-by: Gregory Haskins --- fs/eventfd.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/eventfd.c b/fs/eventfd.c index 0de6ebb..2e1c2ff 100644 --- a/fs/eventfd.c +++ b/fs/eventfd.c @@ -16,6 +16,7 @@ #include #include #include +#include struct eventfd_ctx { wait_queue_head_t wqh; @@ -56,6 +57,7 @@ int eventfd_signal(struct file *file, int n) return n; } +EXPORT_SYMBOL_GPL(eventfd_signal); static int eventfd_release(struct inode *inode, struct file *file) { @@ -197,6 +199,7 @@ struct file *eventfd_fget(int fd) return file; } +EXPORT_SYMBOL_GPL(eventfd_fget); struct file *eventfd_file_create(unsigned int count, int flags) { @@ -225,6 +228,7 @@ struct file *eventfd_file_create(unsigned int count, int flags) return file; } +EXPORT_SYMBOL_GPL(eventfd_file_create); SYSCALL_DEFINE2(eventfd2, unsigned int, count, int, flags) {