mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
rpmsg: core: add API to get MTU
Return the rpmsg buffer MTU for sending message, so rpmsg users can split a long message in several sub rpmsg buffers. Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Acked-by: Suman Anna <s-anna@ti.com> Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com> Link: https://lore.kernel.org/r/20211015094701.5732-2-arnaud.pouliquen@foss.st.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
74365bc138
commit
e279317e9a
@@ -53,6 +53,7 @@ struct rpmsg_device_ops {
|
||||
* @trysendto: see @rpmsg_trysendto(), optional
|
||||
* @trysend_offchannel: see @rpmsg_trysend_offchannel(), optional
|
||||
* @poll: see @rpmsg_poll(), optional
|
||||
* @get_mtu: see @rpmsg_get_mtu(), optional
|
||||
*
|
||||
* Indirection table for the operations that a rpmsg backend should implement.
|
||||
* In addition to @destroy_ept, the backend must at least implement @send and
|
||||
@@ -72,6 +73,7 @@ struct rpmsg_endpoint_ops {
|
||||
void *data, int len);
|
||||
__poll_t (*poll)(struct rpmsg_endpoint *ept, struct file *filp,
|
||||
poll_table *wait);
|
||||
ssize_t (*get_mtu)(struct rpmsg_endpoint *ept);
|
||||
};
|
||||
|
||||
struct device *rpmsg_find_device(struct device *parent,
|
||||
|
||||
Reference in New Issue
Block a user