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
Unknown Object (File)
Thu, Oct 8, 11:47 PM
Unknown Object (File)
Tue, Oct 6, 8:14 AM
Unknown Object (File)
Sun, Oct 4, 3:26 AM
Unknown Object (File)
Fri, Oct 2, 9:40 AM
Unknown Object (File)
Thu, Oct 1, 10:36 PM
Unknown Object (File)
Thu, Oct 1, 6:21 AM
Unknown Object (File)
Wed, Sep 30, 5:51 AM
Unknown Object (File)
Tue, Sep 29, 9:45 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