Thanks all for the replies!
I already wrote a kernel module in C and it works. It's for an ultrasound device.
At this moment ther driver is minimal and I would like to extend the functionality.
I "don't like" C and love Pascal so I thought that I can try!
I will report my efforts results!
Nicola
Please share your progress, I’d love to see the naysayers proven wrong..
Doing the initial development for a Linux kernel module is not the hard part. The hard part is continually fixing it due to kernel source updates. And that is even for "these languages are used in the Linux kernel".
Proven wrong would be that the Linux kernel source tree the module is built against is updated every week, and the module updated as needed. And that after 5-10 years that was never a hassle to do so.
And no, you just can't stay on some Linux kernel version forever, that is not how using Linux works. And the longer you go between updating and fixing, the harder it gets.
My being a "naysayer" in this thread is primarily because I know how hard maintaining out of tree kernel modules is. This being done in Pascal is secondary. The Linux kernel was not designed to be friendly to any languages other than C (and now Rust, but this is still difficult), but that can be overcome to some degree.
That (out of tree) has always been a difficult area in Linux. No one is going to prove us "naysayers" wrong.
Yeah, if you are Oracle, AMD, Nvidia, etc, and want to have full time Linux kernel developers, that is one thing. But that is not what this thread is about.