Page MenuHomeFreeBSD

linuxkpi: Define `__ATTR_RO_MODE()` and `__ATTR_RW_MODE()`
ClosedPublic

Authored by dumbbell on Jun 14 2026, 9:14 AM.
Tags
None
Referenced Files
F168131967: D57574.id179717.diff
Wed, Aug 26, 12:54 PM
Unknown Object (File)
Fri, Aug 21, 10:55 PM
Unknown Object (File)
Thu, Aug 13, 1:31 AM
Unknown Object (File)
Thu, Aug 13, 12:26 AM
Unknown Object (File)
Wed, Aug 12, 11:19 PM
Unknown Object (File)
Mon, Aug 10, 11:54 AM
Unknown Object (File)
Sun, Aug 9, 7:22 PM
Unknown Object (File)
Sun, Aug 9, 2:33 AM
Subscribers

Details

Summary

They are the same as their __ATTR_RO() and _ATTR_RW() equivalents but they take the file mode as an extra argument.

We now use these new macros to redefine __ATTR_RO() and __ATTR_RW() on top of them.

The amdgpu DRM driver started to use __ATTR_RW_MODE() in Linux 6.13.

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

Sponsored by: The FreeBSD Foundation

Diff Detail

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