diff options
| author | Jiri Slaby (SUSE) <[email protected]> | 2024-04-05 08:08:14 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-04-09 15:28:03 +0200 |
| commit | 4edd7e96a1f159f43bd1cb82616f81eaddd54262 (patch) | |
| tree | d1bd1469fc03989dd685aa979c04bba2b82851aa /tools/perf/scripts/python | |
| parent | 76738194be605c9fb279f87d8a6b0b95904bfb60 (diff) | |
kfifo: add kfifo_out_linear{,_ptr}()
These are helpers which are going to be used in the serial layer. We
need a wrapper around kfifo which provides us with a tail (sometimes
"tail" offset, sometimes a pointer) to the kfifo data. And which returns
count of available data -- but not larger than to the end of the buffer
(hence _linear in the names). I.e. something like CIRC_CNT_TO_END() in
the legacy circ_buf.
This patch adds such two helpers.
Signed-off-by: Jiri Slaby (SUSE) <[email protected]>
Cc: Stefani Seibold <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions