From 439c52937a523d33eecea31276d26078b61b9656 Mon Sep 17 00:00:00 2001 From: fangzhenwei Date: Mon, 18 Dec 2023 20:23:09 +0800 Subject: [PATCH] rpmsgfs: add tty fd ioctl(TCGETS/TCSETS) support rpmsgfs client ioctl support TCDRN/TCFLSH/TCGETS/TCSETS Signed-off-by: fangzhenwei --- fs/rpmsgfs/rpmsgfs_client.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fs/rpmsgfs/rpmsgfs_client.c b/fs/rpmsgfs/rpmsgfs_client.c index 2fda6cfe14..5e2924ead2 100644 --- a/fs/rpmsgfs/rpmsgfs_client.c +++ b/fs/rpmsgfs/rpmsgfs_client.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -396,6 +397,12 @@ static ssize_t rpmsgfs_ioctl_arglen(int cmd) return sizeof(int); case FIOC_FILEPATH: return PATH_MAX; + case TCDRN: + case TCFLSH: + return 0; + case TCGETS: + case TCSETS: + return sizeof(struct termios); case FIOC_SETLK: case FIOC_GETLK: case FIOC_SETLKW: