Re: ERR MSG: called regular read() on /dev/rtdm/fake_dev

2020-04-16 Thread Jan Kiszka via Xenomai
On 16.04.20 11:25, 孙世龙 wrote: Hi,     >>Then you need to mark the POSIX IO calls that target your RTDM device     >>with __RT() explicitly.      It works!      Could you give me some guide to understand it?      What a magic!      Why it works after adding __RT() explicitly? #define __C

Re: ERR MSG: called regular read() on /dev/rtdm/fake_dev

2020-04-16 Thread 孙世龙 via Xenomai
Hi, >>Then you need to mark the POSIX IO calls that target your RTDM device >>with __RT() explicitly. It works! Could you give me some guide to understand it? What a magic! Why it works after adding __RT() explicitly? Best regards. Jan Kiszka 于2020年4月16日周四 下午5

Re: ERR MSG: called regular read() on /dev/rtdm/fake_dev

2020-04-16 Thread Jan Kiszka via Xenomai
On 16.04.20 11:09, 孙世龙 wrote: Hi,       I am using native calls.I intentionally not to use the posix calls to avoid the conflicts with the posix calls provided by linux.       My makefile is listed below.      My makefile:      CFLAGS  := $(shell $(XENO_CONFIG) --skin=native --cflags) -Wa

Re: ERR MSG: called regular read() on /dev/rtdm/fake_dev

2020-04-16 Thread 孙世龙 via Xenomai
Hi, I am using native calls.I intentionally not to use the posix calls to avoid the conflicts with the posix calls provided by linux. My makefile is listed below. My makefile: CFLAGS := $(shell $(XENO_CONFIG) --skin=native --cflags) -Wall LDFLAGS := $(shell $(XENO_CONF

Re: ERR MSG: called regular read() on /dev/rtdm/fake_dev

2020-04-16 Thread Jan Kiszka via Xenomai
On 16.04.20 10:57, 孙世龙 via Xenomai wrote: Hi, I got the error message listed below when I called read operation to an opened rtdm file handle in main function. I have implemented the rt read operation in my rtdm driver allready. I think the main thread is allready turned i

ERR MSG: called regular read() on /dev/rtdm/fake_dev

2020-04-16 Thread 孙世龙 via Xenomai
Hi, I got the error message listed below when I called read operation to an opened rtdm file handle in main function. I have implemented the rt read operation in my rtdm driver allready. I think the main thread is allready turned into xenomai thread because I have called rt_sha