summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2026-09-07 16:40:45 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-09-14 10:53:45 +0200
commitde9d89b4086129cd575640ed111b18d43c01a5d4 (patch)
tree3c39b89f58a6899f038cca1460b09d564ff927a4 /include/linux
parent4d84caebab18c7c5bc84a3ed7cfef439449f7ae3 (diff)
downloadlinux-next-de9d89b4086129cd575640ed111b18d43c01a5d4.tar.gz
linux-next-de9d89b4086129cd575640ed111b18d43c01a5d4.zip
thunderbolt: Add tb_ring_poll_pending()
This helper can be used to figure out whether tb_ring_poll() has a frame to be returned. This can be used without the caller needing to take its own lock. Assisted-by: LLM Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/thunderbolt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/thunderbolt.h b/include/linux/thunderbolt.h
index 335fa31ab1df..577bcf6e3810 100644
--- a/include/linux/thunderbolt.h
+++ b/include/linux/thunderbolt.h
@@ -754,6 +754,7 @@ static inline int tb_ring_tx_more(struct tb_ring *ring, struct ring_frame *frame
/* Used only when the ring is in polling mode */
struct ring_frame *tb_ring_poll(struct tb_ring *ring);
+bool tb_ring_poll_pending(struct tb_ring *ring);
void tb_ring_poll_complete(struct tb_ring *ring);
int tb_ring_throttling(struct tb_ring *ring, unsigned int interval_nsec);