From patchwork Mon May 4 17:55:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gregory Haskins X-Patchwork-Id: 21755 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 n44HuYkp025629 for ; Mon, 4 May 2009 17:56:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756983AbZEDR4K (ORCPT ); Mon, 4 May 2009 13:56:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754668AbZEDR4J (ORCPT ); Mon, 4 May 2009 13:56:09 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:55559 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756983AbZEDR4H (ORCPT ); Mon, 4 May 2009 13:56:07 -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 11:56:00 -0600 Received: from dev.haskins.net (localhost [127.0.0.1]) by dev.haskins.net (Postfix) with ESMTP id 7C1524641E6; Mon, 4 May 2009 13:55:57 -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--cc=linux-kernel"@vger.kernel.org, avi@redhat.com, davidel@xmailserver.org Date: Mon, 04 May 2009 13:55:57 -0400 Message-ID: <20090504175557.26579.90775.stgit@dev.haskins.net> In-Reply-To: <20090504173825.26579.12577.stgit@dev.haskins.net> References: <20090504173825.26579.12577.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) {