Commit 584528d
printk: ringbuffer: Cleanup reader terminology
With the lockless ringbuffer, it is allowed that multiple
CPUs/contexts write simultaneously into the buffer. This creates
an ambiguity as some writers will finalize sooner.
The documentation for the prb_read functions is not clear as it
refers to "not yet written" and "no data available". Clarify the
return values and language to be in terms of the reader: records
available for reading.
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Mladek <[email protected]>1 parent 36652d0 commit 584528d
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1987 | 1987 | | |
1988 | 1988 | | |
1989 | 1989 | | |
1990 | | - | |
1991 | | - | |
| 1990 | + | |
1992 | 1991 | | |
1993 | | - | |
1994 | | - | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
1995 | 1997 | | |
1996 | 1998 | | |
1997 | 1999 | | |
| |||
2010 | 2012 | | |
2011 | 2013 | | |
2012 | 2014 | | |
2013 | | - | |
| 2015 | + | |
2014 | 2016 | | |
2015 | 2017 | | |
2016 | 2018 | | |
| |||
2043 | 2045 | | |
2044 | 2046 | | |
2045 | 2047 | | |
2046 | | - | |
| 2048 | + | |
2047 | 2049 | | |
2048 | 2050 | | |
2049 | 2051 | | |
| |||
2073 | 2075 | | |
2074 | 2076 | | |
2075 | 2077 | | |
2076 | | - | |
| 2078 | + | |
2077 | 2079 | | |
2078 | 2080 | | |
2079 | 2081 | | |
| |||
0 commit comments