Page MenuHomeFreeBSD

linuxkpi: Add compat_ptr and ptr_to_compat
ClosedPublic

Authored by manu on Aug 2 2022, 3:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 1, 2:01 PM
Unknown Object (File)
Dec 10 2025, 9:39 AM
Unknown Object (File)
Dec 3 2025, 12:31 AM
Unknown Object (File)
Nov 26 2025, 5:37 AM
Unknown Object (File)
Nov 26 2025, 3:48 AM
Unknown Object (File)
Nov 25 2025, 8:41 AM
Unknown Object (File)
Nov 22 2025, 9:16 AM
Unknown Object (File)
Nov 18 2025, 11:49 AM

Details

Summary

Needed by drm-kmod.

Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

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

Event Timeline

manu requested review of this revision.Aug 2 2022, 3:30 PM
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/compat.h
62

Not sure about i386. long for pointers is a Linuxism which is often wrong. Can we live with uintptr_t here instead or is Linux always expecting a long?

hselasky added inline comments.
sys/compat/linuxkpi/common/include/linux/compat.h
62

Yes, you can use uintptr_t here. long is good for i386 too. Only not for cheri.

This revision is now accepted and ready to land.Aug 5 2022, 10:26 AM
This revision was automatically updated to reflect the committed changes.