From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: From: Greg Gallagher Date: Mon, 19 Mar 2018 23:33:05 -0400 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Xenomai] Simple application for invoking rtdm driver List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pintu Kumar Cc: "Xenomai@xenomai.org" If you want to use open, read, write you need to specify in the makefile to use the posix skin. You need something like these in your Makefile: XENO_CONFIG := /usr/xenomai/bin/xeno-config CFLAGS := $(shell $(XENO_CONFIG) --posix --cflags) LDFLAGS := $(shell $(XENO_CONFIG) --posix --ldflags) -Greg On Mon, Mar 19, 2018 at 9:42 PM, Pintu Kumar wrote: > Hi, > > I have developed a simple rtdm driver using: open, read_rt, write_rt, close. > Now I wanted to test it using a Xenomai native application, using native skin. > > Here are my observation. > > 1) If I use normal open, read, write system call, then Xenomai reports > that normal read/write method is used for rtdm. > So, it does not work like that. > > 2) If I use, rt_dev_open, rt_dev_read, rt_dev_write, then it works fine. > But latency is very high for write/read, compared to normal. > Also, the migration document says these are legacy API and should be > replaced with rtdm_open, etc. for Xenomai 3.0. > However, if I use rtdm_open, rtdm_write, etc, it could not compile successfully. > I have included rtdm/rtdm.h header file. > > So, please guide me which are the right APIs to use to invoke the rtdm driver. > I could to find the right example in test suite. > > > Thanks, > Pintu > > _______________________________________________ > Xenomai mailing list > Xenomai@xenomai.org > https://xenomai.org/mailman/listinfo/xenomai