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)
Dec 20 2023, 7:00 AM
Unknown Object (File)
Nov 7 2023, 3:51 AM
Unknown Object (File)
Sep 16 2023, 1:02 AM
Unknown Object (File)
Aug 29 2023, 8:53 AM
Unknown Object (File)
Aug 29 2023, 8:49 AM
Unknown Object (File)
Aug 29 2023, 8:01 AM
Unknown Object (File)
Mar 31 2023, 9:55 AM
Unknown Object (File)
Mar 31 2023, 9:55 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