Date: Tue, 20 Sep 2011 22:02:19 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-hackers@freebsd.org, geoffrey levand <geoffrey.levand@mail.ru> Subject: Re: Sharing device driver between kernel and user space Message-ID: <201109202202.19481.hselasky@c2i.net> In-Reply-To: <E1R65Aj-0003Fj-00.geoffrey-levand-mail-ru@f57.mail.ru> References: <E1R65Aj-0003Fj-00.geoffrey-levand-mail-ru@f57.mail.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 20 September 2011 20:35:57 geoffrey levand wrote: > Currently i'm developing VUART device drivers for PS3 architecture. VUART > is bi-directional FIFO queue between 2 logical partitions on PS3. I want > to use the device in the kernel and user space. During system boot PS3 > system has to read/write some data from/to the VUART devices and sometimes > i want to access the device from user space , e.g. with character device > driver by using read/write syscalls. The quuestion is what is the best > solution to share the device between kernel and user lands. One solution i > found would be to porohibit kernel access to the device as soon as a user > application opens the corresponding character device. And allow it again > when the application calls close syscall. The user space should have > higher priority then the kernel. Are there any better solutions for this > problem ? Forgot to mention that a VUART device cannot be accessed > simultaneously by user land and the kernel. The VUART devices are used by > PS3 management logical partition to provide different request/response > services and event notification to other logical partitions. E.g. setting > video mode or configuring audio outputs. > Have you looked at cuse4bsd in ports/multimedia/cuse4bsd-kmod ? --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201109202202.19481.hselasky>