The function changed at some point, but the description was not updated. Link: https://lkml.kernel.org/r/20201017095246.5170-1-hqjagain@gmail.com
Unified · Split
| @@ -793,7 +793,7 @@ static void rb_wake_up_waiters(struct irq_work *work) · 792 unmodified lines | |||
| 793 | * ring_buffer_wait - wait for input to the ring buffer | 793 | * ring_buffer_wait - wait for input to the ring buffer |
| 794 | * @buffer: buffer to wait on | 794 | * @buffer: buffer to wait on |
| 795 | * @cpu: the cpu buffer to wait on | 795 | * @cpu: the cpu buffer to wait on |
| 796 | * @full: wait until a full page is available, if @cpu != RING_BUFFER_ALL_CPUS | 796 | * @full: wait until the percentage of pages are available, if @cpu != RING_BUFFER_ALL_CPUS |
| 797 | * | 797 | * |
| 798 | * If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon | 798 | * If @cpu == RING_BUFFER_ALL_CPUS then the task will wake up as soon |
| 799 | * as data is added to any of the @buffer's cpu buffers. Otherwise | 799 | * as data is added to any of the @buffer's cpu buffers. Otherwise |