Page MenuHomeFreeBSD

loader: Add preload operation to fs_ops
ClosedPublic

Authored by manu on Dec 13 2021, 10:49 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 7, 8:42 PM
Unknown Object (File)
Mar 7 2024, 6:37 PM
Unknown Object (File)
Jan 13 2024, 4:43 AM
Unknown Object (File)
Jan 12 2024, 7:53 AM
Unknown Object (File)
Jan 5 2024, 12:40 PM
Unknown Object (File)
Dec 29 2023, 9:44 PM
Unknown Object (File)
Dec 23 2023, 1:26 AM
Unknown Object (File)
Dec 8 2023, 12:14 AM
Subscribers

Details

Summary

When we load an ELF file (kernel or module) we do seek(2) a lot to
parse/load the different sections of the ELF file.
Protocol like TFTP suffers a lot from this as there is no resume or
a way to start the tranfer from a specified offset in the file.
fs_preload is added to help those protocol.
Call preload just after opening the ELF file that we need to load so
the underlying method can cache the hole file and then read/lseek operations
are faster.

MFC after: 2 weeks
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable