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)
Sun, Oct 19, 4:47 PM
Unknown Object (File)
Fri, Oct 10, 11:28 PM
Unknown Object (File)
Fri, Oct 10, 11:28 PM
Unknown Object (File)
Fri, Oct 10, 5:09 PM
Unknown Object (File)
Sun, Oct 5, 9:56 PM
Unknown Object (File)
Sat, Oct 4, 6:25 PM
Unknown Object (File)
Sat, Oct 4, 10:55 AM
Unknown Object (File)
Sep 22 2025, 4:06 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