Page MenuHomeFreeBSD

kassert: Turn 'poisoned_buf' into a 'void *'
ClosedPublic

Authored by olce on Apr 23 2025, 10:04 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Aug 12, 3:15 PM
Unknown Object (File)
Wed, Aug 5, 6:22 AM
Unknown Object (File)
Tue, Aug 4, 7:08 AM
Unknown Object (File)
Sat, Jul 25, 8:21 PM
Unknown Object (File)
Wed, Jul 22, 11:06 AM
Unknown Object (File)
Tue, Jul 21, 8:10 AM
Unknown Object (File)
Mon, Jul 20, 4:49 PM
Unknown Object (File)
Jul 10 2026, 4:04 PM
Subscribers

Details

Summary

This is a step to make <sys/kassert.h> usable without the need to
explicitly include other headers.

'poisoned_buf' is only used for its value and never subject to pointer
arithmetics. Keeping 'caddr_t' would require <sys/kassert.h> to include
<sys/types.h> (at least on INVARIANTS).

Diff Detail

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