* [Xenomai] compat_ioctl?
@ 2018-09-25 19:30 Richard Weinberger
2018-09-25 20:16 ` Jan Kiszka
0 siblings, 1 reply; 3+ messages in thread
From: Richard Weinberger @ 2018-09-25 19:30 UTC (permalink / raw)
To: xenomai
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.
--
Thanks,
//richard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] compat_ioctl?
2018-09-25 19:30 [Xenomai] compat_ioctl? Richard Weinberger
@ 2018-09-25 20:16 ` Jan Kiszka
2018-09-25 20:23 ` Richard Weinberger
0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2018-09-25 20:16 UTC (permalink / raw)
To: Richard Weinberger, xenomai
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.
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] compat_ioctl?
2018-09-25 20:16 ` Jan Kiszka
@ 2018-09-25 20:23 ` Richard Weinberger
0 siblings, 0 replies; 3+ messages in thread
From: Richard Weinberger @ 2018-09-25 20:23 UTC (permalink / raw)
To: J. Kiszka; +Cc: xenomai
On Tue, Sep 25, 2018 at 10:16 PM Jan Kiszka <jan.kiszka@siemens.com> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-25 20:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-25 19:30 [Xenomai] compat_ioctl? Richard Weinberger
2018-09-25 20:16 ` Jan Kiszka
2018-09-25 20:23 ` Richard Weinberger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.