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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Simon Clubley Newsgroups: comp.lang.ada Subject: Re: Linux kernel module - memory allocation Date: Mon, 18 May 2015 17:34:10 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Date: Mon, 18 May 2015 17:34:10 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="69b4ac4a0024b9a64d109f5cd4d1987d"; logging-data="8106"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1971HDJoSsyOsuTI5q/bGlkx7RJA3orxZk=" User-Agent: slrn/0.9.9p1 (Linux) Cancel-Lock: sha1:t4aQAB3zd1hUl45ssT8ZjQ33z7g= Xref: number.nntp.giganews.com comp.lang.ada:193214 Date: 2015-05-18T17:34:10+00:00 List-Id: On 2015-05-18, Niklas Holsti wrote: > On 15-05-18 12:19 , q.kontinuum wrote: >> Hi, thanks a lot for the fast reply. >> >> In comp.lang.ada, you wrote: >>> On 15-05-18 11:27 , q.kontinuum wrote: >>> Do you mean a real "driver", either kernel-linked or a loadable module? >> >> Yes, I'm aiming for a loadable kernel module. > > 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". 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 (I browse with a locked down Firefox browser on Linux; I don't know anything about this website other than it was the first match in a Google search.) The comp.lang.ada title was: Using GNAT in Linux kernel modules, was: Re: Free RTOS with support for Ada ? Also check out section 16.16 (Writing Linux Modules) at: http://www.pegasoft.ca/resources/boblap/16.html Simon. -- Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP Microsoft: Bringing you 1980s technology to a 21st century world