Re: ERR MSG： called regular read() on /dev/rtdm/fake_dev
jan.kiszka at siemens.com
Thu Apr 16 11:14:53 CEST 2020
On 16.04.20 11:09, 孙世龙 wrote:
> 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_CONFIG) --skin=native --ldflags)
Then you need to mark the POSIX IO calls that target your RTDM device
with __RT() explicitly.
> Look forward to hearing from you.
> Thanks a lot.
> Jan Kiszka <jan.kiszka at siemens.com <mailto:jan.kiszka at siemens.com>> 于
> 2020年4月16日周四 下午5:01写道：
> 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 into xenomai
> > because I have called rt_shadow_task function before the reading
> > I wonder why this error message occurs.
> > Error message from kernel.
> > [155453.637967] [Xenomai] task at 1 called
> regular read()
> > on /dev/rtdm/fake_dev.
> > Look forward to hearing from you.
> > Thanks a lot.
> Your application is not properly wrapping the posix calls, in this case
> read. Check you makefile, ensure that you use the output of
> --skin posix --ldflags" for linking.
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE
> Corporate Competence Center Embedded Linux
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
More information about the Xenomai