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)
Mon, Mar 23, 3:50 AM
Unknown Object (File)
Sat, Mar 21, 6:51 PM
Unknown Object (File)
Fri, Mar 20, 12:25 PM
Unknown Object (File)
Fri, Mar 20, 10:39 AM
Unknown Object (File)
Wed, Mar 18, 8:09 AM
Unknown Object (File)
Sun, Mar 15, 9:27 PM
Unknown Object (File)
Feb 8 2026, 12:46 AM
Unknown Object (File)
Feb 5 2026, 2:40 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