From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: Is anybody can show me a simple rtdm driver to read/write virtual memory device? References: From: Jan Kiszka Message-ID: <03215306-db00-75ce-e473-3de10cb233e7@siemens.com> Date: Mon, 6 Apr 2020 09:45:00 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?5a2Z5LiW6b6Z?= , xenomai@xenomai.org On 06.04.20 09:22, 孙世龙 via Xenomai wrote: > Is anybody could show me a simple xenomai3 rtdm driver to read/write > virtual memory device? > A virtual memory device to: > write "hello world" to memory device in real real time(It's appricate > if the write operation could wake up the read task which allready waited to > read) > read the memory device in real time(It's appricate if the read operation > could wake up the write task which allready waited to write) > What do you mean with "virtual memory"? If you are looking for a pattern how a driver implements read/write callbacks, maybe study the serial drivers. They come closest to "simple". Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux