From 934288757c45e9d8d88e9e1cb4669762d804e89f Mon Sep 17 00:00:00 2001 From: nl6720 Date: Sun, 21 Jan 2024 13:48:16 +0200 Subject: [PATCH] tree-wide: link to docs.kernel.org for kernel documentation https://www.kernel.org/ links to https://docs.kernel.org/ for the documentation. These URLs are shorter and nicer looking. --- man/systemd-sleep.conf.xml | 4 ++-- man/systemd.resource-control.xml | 4 ++-- src/shared/bpf-program.c | 2 +- src/ukify/ukify.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/systemd-sleep.conf.xml b/man/systemd-sleep.conf.xml index f984bcb33f..1abec4f34f 100644 --- a/man/systemd-sleep.conf.xml +++ b/man/systemd-sleep.conf.xml @@ -162,7 +162,7 @@ The allowed set of values is determined by the kernel and is shown in the file itself (use cat /sys/power/disk to display). See the kernel documentation page - + Basic sysfs Interfaces for System Suspend and Hibernation for more details. @@ -183,7 +183,7 @@ The allowed set of values is determined by the kernel and is shown in the file itself (use cat /sys/power/state to display). See + url="https://docs.kernel.org/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation"> Basic sysfs Interfaces for System Suspend and Hibernation for more details. diff --git a/man/systemd.resource-control.xml b/man/systemd.resource-control.xml index 2eb6797f4c..972e1d2316 100644 --- a/man/systemd.resource-control.xml +++ b/man/systemd.resource-control.xml @@ -487,7 +487,7 @@ CPUWeight=20 DisableControllers=cpu / \ cache for swap pages. It takes pages that are in the process of being swapped out and attempts to compress them into a dynamically allocated RAM-based memory pool. If the limit specified is hit, no entries from this unit will be stored in the pool until existing entries are faulted back or written out to disk. See the kernel's - Zswap documentation for more details. + Zswap documentation for more details. Takes a size in bytes. If the value is suffixed with K, M, G or T, the specified size is parsed as Kilobytes, Megabytes, Gigabytes, or Terabytes (with the base 1024), respectively. If assigned the @@ -566,7 +566,7 @@ CPUWeight=20 DisableControllers=cpu / \ number of tasks on the system. If assigned the special value infinity, no tasks limit is applied. This controls the pids.max control group attribute. For details about this control group attribute, the - pids controller + pids controller . The effective configuration is reported as EffectiveTasksMax=. diff --git a/src/shared/bpf-program.c b/src/shared/bpf-program.c index bbdd4f64ac..ac92ec8241 100644 --- a/src/shared/bpf-program.c +++ b/src/shared/bpf-program.c @@ -321,7 +321,7 @@ int bpf_map_new( /* The map name is primarily informational for debugging purposes, and typically too short * to carry the full unit name, hence we employ a trivial lossy escaping to make it fit * (truncation + only alphanumerical, "." and "_" are allowed as per - * https://www.kernel.org/doc/html/next/bpf/maps.html#usage-notes) */ + * https://docs.kernel.org/bpf/maps.html#usage-notes) */ for (size_t i = 0; i < sizeof(attr.map_name) - 1 && *n; i++, n++) attr.map_name[i] = strchr(ALPHANUMERICAL ".", *n) ? *n : '_'; diff --git a/src/ukify/ukify.py b/src/ukify/ukify.py index 98739969ae..efa780992f 100755 --- a/src/ukify/ukify.py +++ b/src/ukify/ukify.py @@ -190,7 +190,7 @@ class Uname: @classmethod def scrape_x86(cls, filename, opts=None): # Based on https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/blob/master/functions#L136 - # and https://www.kernel.org/doc/html/latest/x86/boot.html#the-real-mode-kernel-header + # and https://docs.kernel.org/arch/x86/boot.html#the-real-mode-kernel-header with open(filename, 'rb') as f: f.seek(0x202) magic = f.read(4)