HomeFreeBSD

include: add a userland version of __assert_unreachable

Description

include: add a userland version of __assert_unreachable

The kernel has had a version of this since
c79cee71363d ("kernel: provide panicky version of unreachable"), and
userland can benefit from the same.
unreachable is largely
inadequate because it's *not* an assertion of any sort, so we're not
really alerted to a problem that we could've anticipated.

Reviewed by: emaste, imp, jhb, olce
Differential Revision: https://reviews.freebsd.org/D48077

(cherry picked from commit 712f81feea416e9f8aaf040173883876a50a7d34)

Details

Provenance
kevansAuthored on Jan 13 2025, 12:41 AM
christosCommitted on Tue, Mar 18, 12:55 PM
Reviewer
emaste
Differential Revision
D48077: include: add a userland version of __assert_unreachable
Parents
rG01ade56eba14: routing: do not allow PINNED routes to be overriden
Branches
Unknown
Tags
Unknown