Page MenuHomeFreeBSD

LinuxKPI: Move vmap-related code from linux_compat.c to linux_page.c
ClosedPublic

Authored by wulf on Dec 14 2025, 10:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jan 10, 6:41 AM
Unknown Object (File)
Thu, Jan 8, 8:20 AM
Unknown Object (File)
Tue, Jan 6, 12:23 AM
Unknown Object (File)
Tue, Dec 30, 6:07 PM
Unknown Object (File)
Fri, Dec 26, 5:33 AM
Unknown Object (File)
Wed, Dec 24, 8:52 PM
Unknown Object (File)
Mon, Dec 22, 7:12 PM
Unknown Object (File)
Sat, Dec 20, 8:47 PM

Details

Summary

Coming vmap_pfn() implementation requires is_vmalloc_addr() to be in
the same file with other vmap-related code. So move code out from
the overcrowded file. No functional changes intended.

Diff Detail

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

Event Timeline

wulf requested review of this revision.Dec 14 2025, 10:05 PM
bz requested changes to this revision.Dec 14 2025, 10:17 PM

Otherwise (assuming the migrating code from one file to the other is a clean move), this seems fine.

sys/compat/linuxkpi/common/src/linux_page.c
687

Please call this lkpi_page_init()

698

Please call this lkpi_page_uninit()

This revision now requires changes to proceed.Dec 14 2025, 10:17 PM

s/linux_/lkpi_/ in function names

bz added inline comments.
sys/compat/linuxkpi/common/src/linux_page.c
695

Sorry, I missed pointing this out; you could probably also call the uniquifier "lkpi_page" in both SYS(UN)INIT cases.

Otherwise this can go in. And I'll be happy to use the SYSINITs as well later with some other work in progress :)

This revision is now accepted and ready to land.Dec 14 2025, 10:58 PM