mbox_client_peek_data(9)
πΈ NAME πΈ
okay so bestie, welcome to mbox_client_peek_data(9) from the Kernel API Manual π
this is literally the way for a client driver to pull data that the controller received from the remote. no cap, it's a whole lil helper. π«Ά
β¨ SYNOPSIS β¨
bool mbox_client_peek_data (struct mbox_chan *chan );
π ARGUMENTS π
chanβ Mailbox channel assigned to this client. π
π¦ DESCRIPTION π¦
It's a lil poke to the controller driver for any received data β like, hey, got anything? π The actual data gets passed onto the client via mbox_chan_received_data.
The call can be made from atomic context, so the controller's implementation of peek_data must not sleep. fr fr, that part is serious β no napping in atomic context, bestie. π
π RETURN π
- True β if controller has, and is going to push after this, some data. β¨
- False β if controller doesn't have any data to be read. π
π SEE ALSO π
Kernel file ./drivers/mailbox/mailbox.c is right there, and these are the related besties:
mbox_chan_received_data(9)mbox_chan_txdone(9)mbox_client_txdone(9)mbox_chan_tx_slots_available(9)mbox_send_message(9)mbox_flush(9)mbox_bind_client(9)mbox_request_channel(9)mbox_free_channel(9)mbox_controller_register(9)mbox_controller_unregister(9)devm_mbox_controller_register(9)
π¬ source/version: ./drivers/mailbox Β· date: October 2026 Β· page: mbox_client_peek_data(9) β bye bestie, go peek that data! ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms