All of lore.kernel.org
 help / color / mirror / Atom feed
* Simple Xenomai 4 API use examples and a question
@ 2025-08-22  7:13 Emmanuel Pacaud
  2025-08-22  7:34 ` Philippe Gerum
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Emmanuel Pacaud @ 2025-08-22  7:13 UTC (permalink / raw)
  To: xenomai

Hi,

I have started to work on a repository which is intended as a collection of very simple (dumb) examples of Xenomai 4 API use. Each example is an application, sometimes coupled with a kernel module, with the strict minimum around the actual API use. Applications and kernel modules are built using meson. The meson files are also kept the their simplest form. That was easy for the application building, not so for the kernel modules.

The repository is here: <https://gitlab.com/emmanuelpacaud/xenomai-c-examples>

It is similar to what I did for my own project: <https://github.com/AravisProject/aravis-c-examples>. I do think this sort a simple example collection are useful to understand how to use an API.

It is a work on progress, the code should be more commented.

But to be useful, all the examples should work, and I'm blocking on the oob_ioctl example :(

* <https://gitlab.com/emmanuelpacaud/xenomai-c-examples/-/blob/cd9f849d4325b57565edcd691021255adc486b90/oob-ioctl.c>
* <https://gitlab.com/emmanuelpacaud/xenomai-c-examples/-/blob/cd9f849d4325b57565edcd691021255adc486b90/modules/oob-ioctl.c>
* <https://gitlab.com/emmanuelpacaud/xenomai-c-examples/-/blob/cd9f849d4325b57565edcd691021255adc486b90/modules/oob-ioctl.h>

The ioctl call fails with a `Bad file descriptor` error. What I'm doing wrong ?

Emmanuel.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-08-24  9:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-22  7:13 Simple Xenomai 4 API use examples and a question Emmanuel Pacaud
2025-08-22  7:34 ` Philippe Gerum
2025-08-22  7:35   ` Philippe Gerum
2025-08-22  7:36     ` Philippe Gerum
2025-08-22  7:45 ` Philippe Gerum
2025-08-22 12:20   ` Emmanuel Pacaud
2025-08-22 13:29 ` Emmanuel Pacaud
2025-08-24  9:02   ` Philippe Gerum

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.