Page MenuHomeFreeBSD

kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers.
ClosedPublic

Authored by jhb on Sep 13 2022, 1:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 17, 8:45 PM
Unknown Object (File)
Dec 10 2024, 6:19 PM
Unknown Object (File)
Nov 27 2024, 12:31 PM
Unknown Object (File)
Nov 16 2024, 4:41 PM
Unknown Object (File)
Nov 16 2024, 1:07 AM
Unknown Object (File)
Nov 13 2024, 6:09 AM
Unknown Object (File)
Nov 10 2024, 10:38 AM
Unknown Object (File)
Nov 9 2024, 9:26 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 47363
Build 44250: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Sep 13 2022, 1:38 PM

This will require a __FreeBSD_version bump and needs patches for the following ports (I already have them patched locally, but will need to finalize the patches once the real __FreeBSD_version value is known):

  • emulators/open-vm-tools
  • x11/nvidia-driver*

I should clarify that the motivation behind both this change and the pmap_unmapdev change is to reduce friction with CheriBSD for which vm_offset_t as a type doesn't work with these APIs in CHERI kernels (vm_offset_t is an address but not a pointer in CHERI kernels)

This revision is now accepted and ready to land.Sep 13 2022, 2:01 PM