Thread (16 messages) read the whole thread 16 messages, 4 authors, 2024-08-31

Re: [PATCH 4/7] staging: vchiq_core: Factor out bulk transfer for (no/)callback mode

From: "Arnd Bergmann" <arnd@arndb.de>
Date: 2024-08-23 15:41:54
Also in: linux-staging, lkml

On Fri, Aug 23, 2024, at 15:14, Umang Jain wrote:
+int
+bulk_xfer_callback_interruptible(struct vchiq_instance *instance, 
unsigned int handle,
+				 void *offset, void __user *uoffset, int size,
+				 enum vchiq_bulk_mode mode, void *userdata,
+				 enum vchiq_bulk_dir dir)
It seems you can also tighten the argument types here a bit more:

- uoffset is always NULL and can be left out
- userdata is either NULL or a struct mmal_msg_context, so you can use
  that type directly.

     Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help