rpmsgdev:add support FIOC_FILEPATH for rpmsgdev_ioctl

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-02-01 16:25:39 +08:00 committed by Xiang Xiao
parent 64ebb149c6
commit 22c4a82fa3

View file

@ -626,6 +626,8 @@ static ssize_t rpmsgdev_ioctl_arglen(int cmd)
case TUNSETIFF:
case TUNGETIFF:
return sizeof(struct ifreq);
case FIOC_FILEPATH:
return PATH_MAX;
default:
return -ENOTTY;
}