This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 8072d487a806b0c6bd8f0cae3b1713ca5071ceac
Author: rongyichang <[email protected]>
AuthorDate: Sun Jan 5 08:54:29 2025 +0800

    drivers/misc/rpmsgdev: forward MSIOC_GRAB
    
    Add MSIOC_GRAB to rpmsgdev_ioctl_arglen() so that a mouse exported
    over rpmsgdev can be grabbed and released from the client. The
    argument is passed by value.
    
    Signed-off-by: rongyichang <[email protected]>
---
 drivers/misc/rpmsgdev.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/misc/rpmsgdev.c b/drivers/misc/rpmsgdev.c
index 794648983d6..dce851f13eb 100644
--- a/drivers/misc/rpmsgdev.c
+++ b/drivers/misc/rpmsgdev.c
@@ -629,6 +629,8 @@ static ssize_t rpmsgdev_ioctl_arglen(int cmd, unsigned long 
arg)
       case MSIOC_VENDOR:
         return sizeof(struct mouse_vendor_cmd_s) +
                ((FAR struct mouse_vendor_cmd_s *)(uintptr_t)arg)->len;
+      case MSIOC_GRAB:
+        return 0;
       default:
         return -ENOTTY;
     }

Reply via email to