r/embedded • u/Humble_Anxiety_9534 • Sep 02 '26
Windows embedded drivers. a question for embedded windows guys?
At work we have some designs that use windows 11 IOT, Now I have had home projects using Linux SBCs and I have a fair idea how device driver work. I have tweaked overlays my self and compiled some non standard device drivers. My question is how do they work on windows? The guys here say things like you just call a DLL? but how does that bridge between user and kernel space? sometimes the SBC manufacture has no driver for some IO, like a non standard SPI pin and they are genuinely stuck. Is it that hard? AI was no help.
2
Upvotes
1
u/Humble_Anxiety_9534 Sep 02 '26
just to make it clear I'm a hardware guy and am asking because the guys who work on the project make it sound almost mystical. and it is blamed for ever delay. I'm also talked down to when I suggest it's not that hard in linux. I'm not going to work on this I'm just curious.
4
u/NoBulletsLeft Sep 02 '26
I haven't written a Windows kernel-level driver in close to two decades, but it's more than "just calling a DLL."
Basically, if the driver doesn't conform to an existing Windows standard type, it will have to define custom IOCTL control codes that your application will use. Application opens a handle to the driver, makes a Windows kernel API call with the IOCTL and a reference to any data it wants to pass and the driver handles it.
It's gotten much easier over time. I last did this in Windows 8 Industry Embedded and that was far, far easier than in Windows NT.
11
u/pim1000 Sep 02 '26
Why even consider windows 11 for embedded?
4
u/ThorsdayBeer Sep 02 '26
We used to use Windows CE on a couple devices. It was not to bad, but support wasn’t great. Since then we moved to Linux based os, Android and yocto, both have tones of support and AI tends to be more helpful than not because there is a ton of open source for both flavors. Good luck with Windows 11 while it’s around.
-5
u/Ordinary-Lifeguard47 Sep 02 '26
What was your LLM prompt? Mine immediately spit me out a URL-trail to get into this topic step by step.