Page MenuHomeFreeBSD

linuxkpi: Define diagnostic macros like `might_resched()` or `cant_sleep()`
ClosedPublic

Authored by dumbbell on Apr 16 2026, 8:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 10, 7:59 PM
Unknown Object (File)
Thu, Sep 10, 4:13 PM
Unknown Object (File)
Thu, Sep 10, 10:22 AM
Unknown Object (File)
Sat, Sep 5, 2:40 AM
Unknown Object (File)
Fri, Sep 4, 1:59 PM
Unknown Object (File)
Wed, Sep 2, 11:08 AM
Unknown Object (File)
Wed, Sep 2, 11:05 AM
Unknown Object (File)
Wed, Sep 2, 10:51 AM
Subscribers

Details

Summary

They are no-ops on FreeBSD.

While here, move the already defined might_sleep*() macros from <linux/wait.h> to <linux/kernel.h> where they belong.

The DRM generic code started to use might_fault() in Linux 6.12.

This is part of the update of DRM drivers to Linux 6.12.

Sponsored by: The FreeBSD Foundation

Diff Detail

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