Re: [PATCH v5] linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

2020-06-03 Thread Chen Gang
OK, thanks. I'll send patch v6. :) On 2020/6/3 下午8:03, Laurent Vivier wrote: > Le 03/06/2020 à 13:05, Chen Gang a écrit : >> On 2020/6/3 下午5:49, Laurent Vivier wrote: >>> Le 03/06/2020 à 03:08, cheng...@emindsoft.com.cn a écrit : +#ifdef HAVE_DRM_H + +static void unlock_drm_version(

Re: [PATCH v5] linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

2020-06-03 Thread Laurent Vivier
Le 03/06/2020 à 13:05, Chen Gang a écrit : > On 2020/6/3 下午5:49, Laurent Vivier wrote: >> Le 03/06/2020 à 03:08, cheng...@emindsoft.com.cn a écrit : >>> +#ifdef HAVE_DRM_H >>> + >>> +static void unlock_drm_version(struct drm_version *host_ver) >>> +{ >>> +if (host_ver->name) { >>> +unlo

Re: [PATCH v5] linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

2020-06-03 Thread Chen Gang
On 2020/6/3 下午5:49, Laurent Vivier wrote: > Le 03/06/2020 à 03:08, cheng...@emindsoft.com.cn a écrit : >> +#ifdef HAVE_DRM_H >> + >> +static void unlock_drm_version(struct drm_version *host_ver) >> +{ >> +if (host_ver->name) { >> +unlock_user(host_ver->name, 0UL, 0); > > unlock_user()

Re: [PATCH v5] linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

2020-06-03 Thread Laurent Vivier
Le 03/06/2020 à 03:08, cheng...@emindsoft.com.cn a écrit : > From: Chen Gang > > Another DRM_IOCTL_* commands will be done later. > > Signed-off-by: Chen Gang > --- > configure | 10 > linux-user/ioctls.h| 5 ++ > linux-user/syscall.c | 117 ++

[PATCH v5] linux-user: syscall: ioctls: support DRM_IOCTL_VERSION

2020-06-02 Thread chengang
From: Chen Gang Another DRM_IOCTL_* commands will be done later. Signed-off-by: Chen Gang --- configure | 10 linux-user/ioctls.h| 5 ++ linux-user/syscall.c | 117 + linux-user/syscall_defs.h | 15 + linux-user/s