]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: link to docs.kernel.org for kernel documentation
authornl6720 <nl6720@gmail.com>
Sun, 21 Jan 2024 11:48:16 +0000 (13:48 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Mon, 22 Jan 2024 10:50:33 +0000 (10:50 +0000)
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
man/systemd.resource-control.xml
src/shared/bpf-program.c
src/ukify/ukify.py

index f984bcb33fe8741f31430d43bccfffc034dda1ae..1abec4f34fdfcf00be851f663efaee764d97520b 100644 (file)
 
         <para>The allowed set of values is determined by the kernel and is shown in the file itself (use
         <command>cat /sys/power/disk</command> to display). See the kernel documentation page
-        <ulink url="https://www.kernel.org/doc/html/latest/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation">
+        <ulink 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</ulink> for more details.</para>
 
         <para>
 
         <para>The allowed set of values is determined by the kernel and is shown in the file itself (use
         <command>cat /sys/power/state</command> to display). See <ulink
-        url="https://www.kernel.org/doc/html/latest/admin-guide/pm/sleep-states.html#basic-sysfs-interfaces-for-system-suspend-and-hibernation">
+        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</ulink> for more details.</para>
 
         <para>
index 2eb6797f4c9d05d70bb6962f916fc73e145bcf2e..972e1d231627b53efa073b70744c636f5cf198fe 100644 (file)
@@ -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
-          <ulink url="https://www.kernel.org/doc/html/latest/admin-guide/mm/zswap.html">Zswap</ulink> documentation for more details.</para>
+          <ulink url="https://docs.kernel.org/admin-guide/mm/zswap.html">Zswap</ulink> documentation for more details.</para>
 
           <para>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 <literal>infinity</literal>, no tasks
           limit is applied. This controls the <literal>pids.max</literal> control group attribute. For
           details about this control group attribute, the
-          <ulink url="https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#pid">pids controller
+          <ulink url="https://docs.kernel.org/admin-guide/cgroup-v2.html#pid">pids controller
           </ulink>.
           The effective configuration is reported as <varname>EffectiveTasksMax=</varname>.</para>
 
index bbdd4f64ac827dd66856c74e3cde5bff26812208..ac92ec8241099a1a642491ea6685538a0375ff92 100644 (file)
@@ -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 : '_';
 
index 98739969aeff576f259a0b8353825c6e6c95e191..efa780992fb94f5acd6b2b019e2619d81e5a924c 100755 (executable)
@@ -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)