-/* SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1)
+/* SPDX-License-Identifier: (GPL-2.0-only OR LGPL-2.1-only)
*
* ring_buffer_vfs.c
*
case RING_BUFFER_FLUSH_EMPTY:
lib_ring_buffer_switch_remote_empty(buf);
return 0;
+ case RING_BUFFER_CLEAR:
+ lib_ring_buffer_clear(buf);
+ return 0;
default:
return -ENOIOCTLCMD;
}
case RING_BUFFER_COMPAT_FLUSH_EMPTY:
lib_ring_buffer_switch_remote_empty(buf);
return 0;
+ case RING_BUFFER_COMPAT_CLEAR:
+ lib_ring_buffer_clear(buf);
+ return 0;
default:
return -ENOIOCTLCMD;
}