Page MenuHomeFreeBSD

linuxkpi: Define `dev_err_probe*()`
ClosedPublic

Authored by dumbbell on Apr 16 2026, 8:55 PM.
Tags
None
Referenced Files
F157318253: D56435.id176032.diff
Wed, May 20, 7:13 AM
Unknown Object (File)
Sun, May 17, 7:14 AM
Unknown Object (File)
Sun, May 17, 7:13 AM
Unknown Object (File)
Sun, May 17, 12:49 AM
Unknown Object (File)
Sun, May 17, 12:49 AM
Unknown Object (File)
Thu, May 14, 6:25 PM
Unknown Object (File)
Thu, May 14, 10:02 AM
Unknown Object (File)
Mon, May 11, 10:45 PM
Subscribers

Details

Summary

They differ from other dev_*() logging functions by returning the passed error code. The error code is also used to determine if the message should be logged in the first place and at which log level.

The DRM generic code started to use it 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

Event Timeline

bz added a subscriber: bz.
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/device.h
281

I would have very much loved to call dev_err() here but I see it's a bit more tricky with the vargs.

This revision is now accepted and ready to land.Mon, Apr 20, 8:57 PM
This revision was automatically updated to reflect the committed changes.