Re: Adding kqueue to /dev/dsp

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Mon, 09 Jun 2025 09:15:21 UTC
On 6/4/25 20:01, Goran Mekić wrote:
> Hello,
> 
> I already talked to christos@ and he's OK with me adding the support for kqueue 
> to /dev/dsp, but I never saw any docs on how to implement it in the kernel. 
> Could somebody advise on how to add kqueue support to existing device? I mean, 
> if you could point out the simple device code with kqueue support, I would be 
> glad to follow the logic there and learn, for start. Thank you!
> 
> Regards,
> meka
> 
> 

Hi Goran,

See attached patch. It enables kqueue support for psm(4)

-- 
WBR
Vladimir Kondratyev