summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorJassi Brar <jassisinghbrar@gmail.com>2026-02-10 02:36:19 +0300
committerJassi Brar <jassisinghbrar@gmail.com>2026-03-09 06:34:38 +0300
commit57df858a46f0a4cc104716e0ec88864e5c386ca4 (patch)
tree6840547beaf2eeb89236b0cb6b65f4f362d7b0d5 /include/linux/string.h
parent11439c4635edd669ae435eec308f4ab8a0804808 (diff)
downloadlinux-57df858a46f0a4cc104716e0ec88864e5c386ca4.tar.xz
mailbox: add API to query available TX queue slots
Clients sometimes need to know whether the mailbox TX queue has room before posting a new message. Rather than exposing internal queue state through a struct field, provide a proper accessor function that returns the number of available slots for a given channel. This lets clients choose to back off when the queue is full instead of hitting the -ENOBUFS error path and the misleading "Try increasing MBOX_TX_QUEUE_LEN" warning. Tested-by: Tanmay Shah <tanmay.shah@amd.com> Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions