Re: [PATCH v13 03/12] splice: Do splice read from a buffered file without using ITER_PIPE

From: Guenter Roeck
Date: Mon Feb 13 2023 - 18:25:14 EST


On 2/13/23 15:12, David Howells wrote:
Guenter Roeck <linux@xxxxxxxxxxxx> wrote:

Both are initrd.

Do you mean rootfs? And, if so, is that tmpfs-based or ramfs-based?


Both are provided to the kernel using the -initrd qemu option,
which usually means that the address/location is passed to the kernel
through either a register or a data structure. I have not really paid
much attention to what the kernel is doing with that information.
It is in cpio format, so it must be decompressed, but I don't know how
it is actually handled (nor why this doesn't fail on other boots
from initrd).

Guenter