From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "q.kontinuum" Newsgroups: comp.lang.ada Subject: Re: Linux kernel module - memory allocation Date: Mon, 18 May 2015 19:48:22 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: Reply-To: nntp@thorzten.de NNTP-Posting-Host: 35IKgXl2aoGTS/cf41LhKA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: slrn/1.0.1 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:25910 Date: 2015-05-18T19:48:22+00:00 List-Id: On 2015-05-18, Simon Clubley wrote: > On 2015-05-18, Niklas Holsti wrote: >> Ok. I don't think many people have tried this with GNAT or Ada -- I >> don't know of any others. Do you know anyone who has done it? >> > > Yes, I have but I remember very rapidly deciding to give up once I tried > to do something "real". I'm not 100% confident that I will manage to do all I wanted to in Ada... But I want to give it a try :-) I already started to use imported C-functions in some places for convenience. Currently, the idea is to keep the interface small. > Also, it was over a decade ago, so I no longer remember any details. > > Here's a Usenet post of mine which has showed up in one of the Usenet > archives; the response to the post has some information: > > http://computer-programming-forum.com/44-ada/86f1b921763bcbde.htm Yes, I remember I found that post when I started to research... My current plan is to implement the higher functionality of the driver in Ada (onewire device search, message composition and decoding for temperature reading), and maybe use the existing raspberry gpio kernel module to set the right signals on the bus. > Also check out section 16.16 (Writing Linux Modules) at: > > http://www.pegasoft.ca/resources/boblap/16.html Yes, I had a look there and found some first ideas. However, they just mentioned I had to register a license, without telling me how to. So, the hello-world they provided did not work for me. Br, Thorsten