/*
- * ring_buffer_vfs.c
+ * ring_buffer_abi.c
*
* Copyright (C) 2009-2010 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*
#include "backend.h"
#include "frontend.h"
-#include "vfs.h"
+#include <ust/ring-buffer-abi.h>
static int put_ulong(unsigned long val, unsigned long arg)
{
arg);
}
case RING_BUFFER_FLUSH:
- lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE);
+ lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE, handle);
return 0;
default:
return -ENOIOCTLCMD;
return put_ulong(read_offset, arg);
}
case RING_BUFFER_FLUSH:
- lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE);
+ lib_ring_buffer_switch_slow(buf, SWITCH_ACTIVE, handle);
return 0;
default:
return -ENOIOCTLCMD;
.compat_ioctl = lib_ring_buffer_compat_ioctl,
#endif
};
-EXPORT_SYMBOL_GPL(lib_ring_buffer_file_operations);
-
-MODULE_LICENSE("GPL and additional rights");
-MODULE_AUTHOR("Mathieu Desnoyers");
-MODULE_DESCRIPTION("Ring Buffer Library VFS");