Skip to content

Commit

Permalink
eventfd: export eventfd_signal and eventfd_fget for lguest
Browse files Browse the repository at this point in the history
lguest wants to attach eventfds to guest notifications, and lguest is
usually a module.

Signed-off-by: Rusty Russell <[email protected]>
To: Davide Libenzi <[email protected]>
  • Loading branch information
rustyrussell committed Jun 12, 2009
1 parent 9f155a9 commit 5718607
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/eventfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/anon_inodes.h>
#include <linux/eventfd.h>
#include <linux/syscalls.h>
#include <linux/module.h>

struct eventfd_ctx {
wait_queue_head_t wqh;
Expand Down Expand Up @@ -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)
{
Expand Down Expand Up @@ -197,6 +199,7 @@ struct file *eventfd_fget(int fd)

return file;
}
EXPORT_SYMBOL_GPL(eventfd_fget);

SYSCALL_DEFINE2(eventfd2, unsigned int, count, int, flags)
{
Expand Down

0 comments on commit 5718607

Please sign in to comment.