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
F173668053: D56434.diff
Sun, Sep 27, 2:35 PM
Unknown Object (File)
Sat, Sep 19, 8:22 PM
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
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