X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libringbuffer%2Fring_buffer_abi.c;h=0fe6b7e3f07ae10f22a716eb17d58a024d22afd7;hb=193183fb924aef705f30358e54e7386a3a64c78d;hp=fbf6df537f20de015467a5c416189b31710e0009;hpb=9f3fdbc68877e1f12b6cedb15ef76d9af9b48bac;p=ust.git diff --git a/libringbuffer/ring_buffer_abi.c b/libringbuffer/ring_buffer_abi.c index fbf6df5..0fe6b7e 100644 --- a/libringbuffer/ring_buffer_abi.c +++ b/libringbuffer/ring_buffer_abi.c @@ -3,7 +3,7 @@ * * Copyright (C) 2009-2010 - Mathieu Desnoyers * - * Ring Buffer VFS file operations. + * Ring Buffer ABI operations. * * Dual LGPL v2.1/GPL v2 license. */ @@ -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;