unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Brice Waegeneire <brice@waegenei.re>
To: guix-patches@gnu.org
Cc: guix-devel@gnu.org
Subject: [WIP 0/6] Add kernel-module-configuration service
Date: Sat,  4 Jul 2020 20:52:34 +0200	[thread overview]
Message-ID: <20200704185234.12571-1-brice@waegenei.re> (raw)

Hello Guix,

Here is a work-in-progress to create a service centralizing the configuration
for built-in and loadable kernel modules.  The kernel module configuration
service has been implemented by making some fields from 'operating-system'
custom from the 'services' field.

Here are are some example of how to use it.
--8<---------------cut here---------------start------------->8---
;; Loadable kernel module
(simple-service 'ddcci-module kernel-module-configuration-service-type
                   (list (kernel-module
                          (name "ddcci")
                          (package ddcci-driver-linux)
                          (load? #t)
                          (options '("dyndbg" "delay=600")))
                         (kernel-module
                          (name "ddcci-backlight")
                          (blacklist? #t))))
;; Built-in kernel module
(simple-service 'intel-module
                         kernel-module-configuration-service-type
                         (list (kernel-module
                                (name "i915")
                                (options '("fastboot=1")))))
--8<---------------cut here---------------end--------------->8---

This WIP version is mainly missing the ability to configure built-in modules
trough the kernel arguments. It's the continuation of the work on
kernel-module-loader-service[1] and is needed to help fixing #41082[2].

I will try to go back to it after the GSOC network boot project.

[1]: https://issues.guix.info/40274
[2]: https://issues.guix.info/41082

- Brice

Brice Waegeneire (6):
  services: simulated-wifi: Use 'kernel-module-loader'.
  services: Add 'kernel-profile-service-type'.
  services: Add 'modprobe-service-type'.
  services: kernel-module-loader: Return a single 'shepherd-service'.
  WIP services: Add kernel-arguments-service-type.
  WIP services: Add kernel-module-configuration service.

 gnu/services.scm               | 102 +++++++++---
 gnu/services/linux.scm         | 276 +++++++++++++++++++++++++++++----
 gnu/services/networking.scm    |  25 +--
 gnu/system.scm                 |  55 +++++--
 gnu/system/linux-container.scm |   2 +
 gnu/tests/linux-modules.scm    |  65 +++++---
 6 files changed, 420 insertions(+), 105 deletions(-)

-- 
2.26.2



                 reply	other threads:[~2020-07-04 18:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200704185234.12571-1-brice@waegenei.re \
    --to=brice@waegenei.re \
    --cc=guix-devel@gnu.org \
    --cc=guix-patches@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).