summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/boot/efi/cpio.c2
-rw-r--r--src/boot/efi/linux_x86.c2
-rw-r--r--src/core/dbus-unit.c2
-rw-r--r--src/home/homework.c2
-rw-r--r--src/shared/cgroup-show.c2
-rw-r--r--src/shared/linux/bpf.h2
-rw-r--r--src/shared/udev-util.c4
-rw-r--r--src/test/test-web-util.c2
8 files changed, 9 insertions, 9 deletions
diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c
index d680b7e151..5f0f0cf686 100644
--- a/src/boot/efi/cpio.c
+++ b/src/boot/efi/cpio.c
@@ -71,7 +71,7 @@ static EFI_STATUS pack_cpio_one(
/* Serializes one file in the cpio format understood by the kernel initrd logic.
*
- * See: https://www.kernel.org/doc/html/latest/driver-api/early-userspace/buffer-format.html */
+ * See: https://docs.kernel.org/driver-api/early-userspace/buffer-format.html */
if (contents_size > UINT32_MAX) /* cpio cannot deal with > 32bit file sizes */
return EFI_LOAD_ERROR;
diff --git a/src/boot/efi/linux_x86.c b/src/boot/efi/linux_x86.c
index 358183e76d..d506070926 100644
--- a/src/boot/efi/linux_x86.c
+++ b/src/boot/efi/linux_x86.c
@@ -7,7 +7,7 @@
* this x86 specific linux_exec function passes the initrd by setting the
* corresponding fields in the setup_header struct.
*
- * see https://www.kernel.org/doc/html/latest/x86/boot.html
+ * see https://docs.kernel.org/x86/boot.html
*/
#include <efi.h>
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index 34608fc091..aaa72cec80 100644
--- a/src/core/dbus-unit.c
+++ b/src/core/dbus-unit.c
@@ -1284,7 +1284,7 @@ static int append_cgroup(sd_bus_message *reply, const char *p, Set *pids) {
pid_t pid;
/* libvirt / qemu uses threaded mode and cgroup.procs cannot be read at the lower levels.
- * From https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#threads,
+ * From https://docs.kernel.org/admin-guide/cgroup-v2.html#threads,
* “cgroup.procs” in a threaded domain cgroup contains the PIDs of all processes in
* the subtree and is not readable in the subtree proper. */
r = cg_read_pid(f, &pid);
diff --git a/src/home/homework.c b/src/home/homework.c
index 5ba6703341..c41866cd41 100644
--- a/src/home/homework.c
+++ b/src/home/homework.c
@@ -274,7 +274,7 @@ int user_record_authenticate(
static void drop_caches_now(void) {
int r;
- /* Drop file system caches now. See https://www.kernel.org/doc/html/latest/admin-guide/sysctl/vm.html
+ /* Drop file system caches now. See https://docs.kernel.org/admin-guide/sysctl/vm.html
* for details. We write "2" into /proc/sys/vm/drop_caches to ensure dentries/inodes are flushed, but
* not more. */
diff --git a/src/shared/cgroup-show.c b/src/shared/cgroup-show.c
index fc1e631464..f3f97f6cac 100644
--- a/src/shared/cgroup-show.c
+++ b/src/shared/cgroup-show.c
@@ -105,7 +105,7 @@ static int show_cgroup_one_by_path(
pid_t pid;
/* libvirt / qemu uses threaded mode and cgroup.procs cannot be read at the lower levels.
- * From https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#threads,
+ * From https://docs.kernel.org/admin-guide/cgroup-v2.html#threads,
* “cgroup.procs” in a threaded domain cgroup contains the PIDs of all processes in
* the subtree and is not readable in the subtree proper. */
r = cg_read_pid(f, &pid);
diff --git a/src/shared/linux/bpf.h b/src/shared/linux/bpf.h
index f4009dbdf6..51309a19b3 100644
--- a/src/shared/linux/bpf.h
+++ b/src/shared/linux/bpf.h
@@ -473,7 +473,7 @@ union bpf_iter_link_info {
* Verify and load BPF Type Format (BTF) metadata into the kernel,
* returning a new file descriptor associated with the metadata.
* BTF is described in more detail at
- * https://www.kernel.org/doc/html/latest/bpf/btf.html.
+ * https://docs.kernel.org/bpf/btf.html.
*
* The *btf* parameter must point to valid memory providing
* *btf_size* bytes of BTF binary metadata.
diff --git a/src/shared/udev-util.c b/src/shared/udev-util.c
index 1eb5d8fb53..5eed3d95fd 100644
--- a/src/shared/udev-util.c
+++ b/src/shared/udev-util.c
@@ -608,7 +608,7 @@ static int device_is_power_sink(sd_device *device) {
assert(device);
/* USB-C power supply device has two power roles: source or sink. See,
- * https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-typec */
+ * https://docs.kernel.org/admin-guide/abi-testing.html#abi-file-testing-sysfs-class-typec */
r = sd_device_enumerator_new(&e);
if (r < 0)
@@ -690,7 +690,7 @@ int on_ac_power(void) {
/* We assume every power source is AC, except for batteries. See
* https://github.com/torvalds/linux/blob/4eef766b7d4d88f0b984781bc1bcb574a6eafdc7/include/linux/power_supply.h#L176
* for defined power source types. Also see:
- * https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-power */
+ * https://docs.kernel.org/admin-guide/abi-testing.html#abi-file-testing-sysfs-class-power */
if (streq(val, "Battery")) {
log_device_debug(d, "The power supply is battery, ignoring.");
continue;
diff --git a/src/test/test-web-util.c b/src/test/test-web-util.c
index 368ccba326..d376d4a4cd 100644
--- a/src/test/test-web-util.c
+++ b/src/test/test-web-util.c
@@ -8,7 +8,7 @@ TEST(is_valid_documentation_url) {
assert_se(documentation_url_is_valid("https://www.freedesktop.org/wiki/Software/systemd"));
assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/binfmt_misc.txt")); /* dead */
assert_se(documentation_url_is_valid("https://www.kernel.org/doc/Documentation/admin-guide/binfmt-misc.rst"));
- assert_se(documentation_url_is_valid("https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html"));
+ assert_se(documentation_url_is_valid("https://docs.kernel.org/admin-guide/binfmt-misc.html"));
assert_se(documentation_url_is_valid("file:/foo/foo"));
assert_se(documentation_url_is_valid("man:systemd.special(7)"));
assert_se(documentation_url_is_valid("info:bar"));