X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=libringbuffer%2Fring_buffer_abi.c;h=3279ccd9ffc8b6e624aa564b722c8f32bfec5b01;hb=ed5426d36fe2da648b4b16ec8173398558d8490f;hp=c105fe000763eedb0922c353860744e33af39a2f;hpb=14641debd03ba299bd06040cb62e0dbdef7fac81;p=ust.git diff --git a/libringbuffer/ring_buffer_abi.c b/libringbuffer/ring_buffer_abi.c index c105fe0..3279ccd 100644 --- a/libringbuffer/ring_buffer_abi.c +++ b/libringbuffer/ring_buffer_abi.c @@ -1,5 +1,5 @@ /* - * ring_buffer_vfs.c + * ring_buffer_abi.c * * Copyright (C) 2009-2010 - Mathieu Desnoyers * @@ -10,7 +10,7 @@ #include "backend.h" #include "frontend.h" -#include "vfs.h" +#include static int put_ulong(unsigned long val, unsigned long arg) { @@ -241,7 +241,7 @@ long lib_ring_buffer_ioctl(struct file *filp, unsigned int cmd, unsigned long ar 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; @@ -354,7 +354,7 @@ long lib_ring_buffer_compat_ioctl(struct file *filp, unsigned int cmd, 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; @@ -374,8 +374,3 @@ const struct file_operations lib_ring_buffer_file_operations = { .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");