kernel / userland communications

2014-02-16 Thread Sven-Volker Nowarra
Hi, I am currently extending my asmc driver (in kernel) to listen to a userland utility (asmcctl). I want to be able to e.g. tell the kernel asmc driver to increase/decrease backlight. Now I need to get this brightness integer from userland (everybody should be able to do this without

Re: kernel / userland communications

2014-02-16 Thread Mark Kettenis
From: Sven-Volker Nowarra peb.nowa...@bluewin.ch Date: Sun, 16 Feb 2014 14:43:07 +0100 Hi, I am currently extending my asmc driver (in kernel) to listen to a userland utility (asmcctl). In general we don;t encourage device-specific control utilities in OpenBSD; instead we try to provide

Re: kernel / userland communications

2014-02-16 Thread Stuart Henderson
On 2014/02/16 14:43, Sven-Volker Nowarra wrote: Hi, I am currently extending my asmc driver (in kernel) to listen to a userland utility (asmcctl). I want to be able to e.g. tell the kernel asmc driver to increase/decrease backlight. Now I need to get this brightness integer from userland

Re: kernel / userland communications

2014-02-16 Thread Miod Vallat
...for controlling the display backlight the appropriate utility is wsconsctl: $ wsconsctl display.brightness display.brightness=100.00% $ wsconsctl display.brightness=50 display.brightness - 50.00% To make this work, your driver has to provide the ws_get_param and ws_set_param hooks.