From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: In-Reply-To: From: Richard Weinberger Date: Tue, 25 Sep 2018 22:23:09 +0200 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Xenomai] compat_ioctl? List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "J. Kiszka" Cc: xenomai@xenomai.org On Tue, Sep 25, 2018 at 10:16 PM Jan Kiszka wrote: > > On 25.09.18 21:30, Richard Weinberger wrote: > > Hi! > > > > I'm evaluating how to migrate an 32-bit system to x86_64. > > The plan is having just the kernel 64-bit and userspace still 32-bit. > > Since we have plenty of custom kernel drivers which are used by the > > real-time application, > > I wonder whether Xenomai has a concept like Linux's compat_ioctl()? > > Somehow I have to convert data when userspace does ioctl() to 64-bit > > kernel drivers. > > Yes, this exists in Xenomai / RTDM as well, see e.g. the drivers under > kernel/drivers/ipc. Ahh, rtdm_fd_is_compat() is the key to success. Thanks for pointing me in the right direction! -- Thanks, //richard