Recent

Author Topic: Developing a Kernel Module  (Read 3313 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 16408
  • Censorship about opinions does not belong here.
Re: Developing a Kernel Module
« Reply #15 on: December 04, 2024, 10:56:05 am »
I agree with you. Responses to the contrary were a bit short sighted  8). (as per my previous response)
But also note that for the device you use you have to tie the kernel version to your module.
That is good advice.
« Last Edit: December 04, 2024, 11:03:51 am by Thaddy »
There is nothing wrong with being blunt. At a minimum it is also honest.

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1291
Re: Developing a Kernel Module
« Reply #16 on: December 04, 2024, 11:16:10 am »
It seems like he is writing a kernel module for his own use. If he wants to do it in pascal, more power to him. If nothing else it will make him better at programming in pascal. If he succeeds he will create something new and useful.  Either way I’m glad he will try.  8-)
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

Bogen85

  • Hero Member
  • *****
  • Posts: 702
Re: Developing a Kernel Module
« Reply #17 on: December 04, 2024, 11:17:24 am »
I'm also well aware of the cost and the difficulty of maintaining the code for the "evolving" kernel...
But, as other sayd, it's for an IOT project, rare update, not connected to internet/cloud, with very low security needs.

If on the critical and security fixes only phase of a long term release for a kernel package from an Enterprise focused Linux distribution then "evolving" is on a much slower track, so much of that maintenance effort is mitigated.
Also, you had mentioned ultrasound device. While all Linux kernel internal interfaces are subject to change, a device like that is not subject to the bleeding edge in making things like networking, video, and filesystems for performant, and since not on the network side of things, not part of the code that needs to be in flux to respond to security threats.

On the other hand, Internet/Cloud is just one part of public facing networks....
(a private and so called secured wireless network is still public facing, unless the device is in a completely RF shielded from all directions underground bunker.)
https://www.nist.gov/itl/applied-cybersecurity/nist-cybersecurity-iot-program
But that is off topic for this thread.

I do not consider to insert the driver in the kernel.org repository. I know well how it "works".
And all we know that, as someone sayd: "The Linusx kernel was not designed to be friendly" O:-)

Since this discussion is in this forum, that is a given (not for kernel.org adoption).

I will reiterate what I said earlier. You do understand the maintenance and other developments risks. Not everyone does, as many are naive about many things Linux.

Cool! And please don't take what I wrote to completely dissuade you. I'm just being realistic as to long term maintenance of out of tree Linux kernel modules.

« Last Edit: December 04, 2024, 11:33:15 am by Bogen85 »

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1291
Re: Developing a Kernel Module
« Reply #18 on: December 04, 2024, 11:21:05 am »
I’m just happy he wants to use pascal. I’m sure he will figure out the details on how to do it. It’s his project after all.
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

MarkMLl

  • Hero Member
  • *****
  • Posts: 8129
Re: Developing a Kernel Module
« Reply #19 on: December 04, 2024, 11:21:12 am »
This is nonsense.

I do not consider to insert the driver in the kernel.org repository.

Suit yourself, but don't misquote me.

I said "...interpreted as trying in insinuate Pascal into the kernel...", and current events show how hostile the kernel developers are inclined to be to anything other than C.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

nicolap

  • New Member
  • *
  • Posts: 10
Re: Developing a Kernel Module
« Reply #20 on: December 08, 2024, 12:15:10 pm »
Hi all,
after a week of war I won the first battle! I was able to build a kernel module that uses a function written in pascal.
Here the long story:
https://stackoverflow.com/questions/79258798/using-a-function-written-in-other-language-than-c-in-kernel-module
There I omitted a little thing...  >:D just to filter out messages like "it's not possible"...

I attached the .pas sources. Very minimal.
Now I can write the rest of the code!
     Nicola

Thaddy

  • Hero Member
  • *****
  • Posts: 16408
  • Censorship about opinions does not belong here.
Re: Developing a Kernel Module
« Reply #21 on: December 08, 2024, 02:18:27 pm »
 :D as I wrote, you have a perfectly valid reason to pursue this and you succeeded. Compliments. 8-)
There is nothing wrong with being blunt. At a minimum it is also honest.

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1291
Re: Developing a Kernel Module
« Reply #22 on: December 08, 2024, 03:16:28 pm »
nicolap
Congratulations on your coding. Can you do me a favor and put the cone into the forums where I can read it easier?  :)
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

nicolap

  • New Member
  • *
  • Posts: 10
Re: Developing a Kernel Module
« Reply #23 on: December 08, 2024, 03:39:37 pm »
nicolap
Congratulations on your coding. Can you do me a favor and put the cone into the forums where I can read it easier?  :)
Let me a couple of days that I can write something more interesting!

Joanna from IRC

  • Hero Member
  • *****
  • Posts: 1291
Re: Developing a Kernel Module
« Reply #24 on: December 08, 2024, 04:35:26 pm »
I will look forward to it.  ;)
✨ 🙋🏻‍♀️ More Pascal enthusiasts are needed on IRC .. https://libera.chat/guides/ IRC.LIBERA.CHAT  Ports [6667 plaintext ] or [6697 secure] channel #fpc  #pascal Please private Message me if you have any questions or need assistance. 💁🏻‍♀️

 

TinyPortal © 2005-2018