Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #86763

Re: Package for development of out-of-tree kernel modules written in Rust

Path csiph.com!weretis.net!feeder8.news.weretis.net!news.usenet.ovh!news.corradoroberto.it!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Miguel Ojeda <miguel.ojeda.sandonis@gmail.com>
Newsgroups linux.debian.kernel
Subject Re: Package for development of out-of-tree kernel modules written in Rust
Date Sun, 06 Apr 2025 23:40:01 +0200
Message-ID <KyFSF-bDwQ-1@gated-at.bofh.it> (permalink)
References <Kkukp-2an8-9@gated-at.bofh.it> <KkuX8-2aRJ-7@gated-at.bofh.it> <KxdlL-aBiN-7@gated-at.bofh.it> <KxdOO-aBIO-29@gated-at.bofh.it> <KxdYt-aBMp-17@gated-at.bofh.it> <Kxf4d-aCq3-1@gated-at.bofh.it> <Kxu3f-aMPG-13@gated-at.bofh.it> <Kxwy5-aOvY-1@gated-at.bofh.it> <KxxXb-aPhh-3@gated-at.bofh.it> <KxAil-aRi4-3@gated-at.bofh.it> <KxLnr-aZnm-5@gated-at.bofh.it>
X-Mailbox-Line From debian-kernel-request@lists.debian.org Sun Apr 6 21:39:33 2025
Old-Return-Path <miguel.ojeda.sandonis@gmail.com>
X-Amavis-Spam-Status No, score=-2.199 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Forwarded-Encrypted i=1; AJvYcCUpzahtOwLgb/1XkG4dBTPwcdLHEOai845E8PYkFWen+Y7SDuAH+ecispbGKI8CRt/sMvBGQEHDF1V20nAN@lists.debian.org, AJvYcCVWO88oUm12j8oxkuGoiZwXL0pMEXz4yrgAxQ/CZYo0eI1pN3eYEQ1lyQvdkYU4XdBh1n4aamSImDo35BU=@lists.debian.org
X-Gm-Message-State AOJu0YwJ6FOKU91mbuL8G3nYpJRmpJXasEssHKro2WJkywwae1D0wFCz hLfWx6I10lhtx1dn+W7VT9W0FL+eXDOaEEiOXQ1SOEMwi/h4teDPKAsql80rmy3DXypQe/qHsPB SxbldPxqUC6hS6QPWaob3nGn6NY0=
X-Gm-Gg ASbGnctBmlPXpSjtjJQoWph9mHxuT88fe6F/puFc8MNA1ZMCLSFXr0ILD7y8bJUHPXr eyknRK+N6NxbYF7hIoENjM3p+Gjn0EpGrMsvJF6o/uNXQ7W810VhpZtdacB+fuv8iornoYSo431 8WYxWvYjg8xU72h6WbVCeGIoHCFV4DSphHrYlx
X-Google-SMTP-Source AGHT+IFNxtrwRgKD5O3GGuX6CifwpNRd2TKg6E7VtF7Uf4l+ULE0Id1eaSSpPx8KZQy64eNFR7rktnl5BBht+8H2He8=
X-Received by 2002:a17:90b:164e:b0:2ff:7b15:8138 with SMTP id 98e67ed59e1d1-306a48bd27bmr5080298a91.7.1743974524126; Sun, 06 Apr 2025 14:22:04 -0700 (PDT)
MIME-Version 1.0
X-Gm-Features ATxdqUG6CG_2wMRWBQQgzsT7RaVSiO1VAN25HqKfgD1Dc7cKZQg8xUhTPfQ5EBo
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
X-Mailing-List <debian-kernel@lists.debian.org> archive/latest/148083
List-ID <debian-kernel.lists.debian.org>
List-URL <https://lists.debian.org/debian-kernel/>
List-Archive https://lists.debian.org/msgid-search/CANiq72n9QXUZ+z5iBHsPnrZRNr55g5T20yAcOdB=dCTxwaRCEw@mail.gmail.com
Approved robomod@news.nic.it
Lines 29
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Sun, 6 Apr 2025 23:21:51 +0200
X-Original-Message-ID <CANiq72n9QXUZ+z5iBHsPnrZRNr55g5T20yAcOdB=dCTxwaRCEw@mail.gmail.com>
X-Original-References <8294a676-b85d-4901-bd5b-64531733b100@disroot.org> <CANiq72mec5AvzaR3yAA4oUgjPtp6ZqLFaW7z=Ey4J5ZX5GFB2w@mail.gmail.com> <20250402203804.r5go6wipv3i6rmwv@shell.thinkmo.de> <20250402211027.yned7ytqevpygnpj@shell.thinkmo.de> <0fb7dc74-1ee5-4b30-8edd-c1db97bbaa85@disroot.org> <b684b03d-f333-4135-870e-e3db9f165926@disroot.org> <20250403142812.kf5ucbblwytoac7h@shell.thinkmo.de> <5058a094-6d9a-4164-aabc-34c3f0db4a75@disroot.org> <20250403183302.iao7vqal7uxh7zn4@shell.thinkmo.de> <CANiq72=9BTu_1nRF0f3EkD4a9GuF5HtOJpDKyBXMQ+-knzcstA@mail.gmail.com> <20250404085954.zmyaafyaj6asrfki@shell.thinkmo.de>
Xref csiph.com linux.debian.kernel:86763

Show key headers only | View raw


On Fri, Apr 4, 2025 at 11:00 AM Bastian Blank <waldi@debian.org> wrote:
>
> C macros are read by the preprocessor shipped in the compiler.  The
> preprocessor changes it's behaviour depending on the input files.
> However you don't recompile the preprocessor depending on the kernel
> config.

I am aware of how C macros are traditionally handled, thank you, but
that is not what I was asking. My question was in relation to yours:

    What the heck is this good for, where config dependency would be useful?

It is pretty easy to see why it would be useful -- for instance, we
would have less (and thus more readable) generated code, as well as
faster macros too.

> The root issue is:  libmacros.so, the output file, must be independent
> from the kernel config.

That is not the root issue. That is a constraint you have.

And I don't see why you say it is a "must" -- we could have a way to
rebuild the required proc macros that out-of-tree modules need on the
fly, for instance, if we end up supporting that use case.

Cheers,
Miguel

Back to linux.debian.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Package for development of out-of-tree kernel modules written in Rust NoisyCoil <noisycoil@disroot.org> - 2025-02-26 01:30 +0100
  Re: Package for development of out-of-tree kernel modules written in  Rust Bastian Blank <waldi@debian.org> - 2025-02-26 12:50 +0100
    Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-02-26 13:20 +0100
      Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-02-26 14:00 +0100
        Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-02-26 15:20 +0100
          Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-02-26 19:30 +0100
            Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-02-26 22:00 +0100
              Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-02-27 18:40 +0100
        Re: Package for development of out-of-tree kernel modules written  in Rust Ben Hutchings <ben@decadent.org.uk> - 2025-02-26 19:20 +0100
          Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-02-26 19:30 +0100
            Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-02-26 20:10 +0100
              Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-02-26 20:20 +0100
                Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-02-27 18:40 +0100
              Re: Package for development of out-of-tree kernel modules written in  Rust Bastian Blank <waldi@debian.org> - 2025-04-02 23:00 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust Bastian Blank <waldi@debian.org> - 2025-04-02 23:30 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-04-02 23:40 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-04-03 00:50 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust Bastian Blank <waldi@debian.org> - 2025-04-03 16:50 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-04-03 19:30 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust Bastian Blank <waldi@debian.org> - 2025-04-03 21:00 +0200
                Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-04-03 23:30 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-04-03 23:40 +0200
                Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-04-06 23:40 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-04-12 18:50 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust Bastian Blank <waldi@debian.org> - 2025-04-13 13:40 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-04-13 17:40 +0200
                Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-04-13 18:40 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-04-13 20:30 +0200
                Re: Package for development of out-of-tree kernel modules written  in Rust Ben Hutchings <ben@decadent.org.uk> - 2025-04-16 17:40 +0200
                Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-05-03 17:10 +0200
                Re: Package for development of out-of-tree kernel modules written in  Rust Bastian Blank <waldi@debian.org> - 2025-04-04 11:20 +0200
                Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-04-06 23:40 +0200
          Re: Package for development of out-of-tree kernel modules written in Rust Miguel Ojeda <miguel.ojeda.sandonis@gmail.com> - 2025-02-26 19:40 +0100
      Re: Package for development of out-of-tree kernel modules written in  Rust NoisyCoil <noisycoil@disroot.org> - 2025-02-26 14:40 +0100
      Re: Package for development of out-of-tree kernel modules written in  Rust Bastian Blank <waldi@debian.org> - 2025-02-26 14:40 +0100

csiph-web