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)
Fri, Sep 18, 8:14 PM
Unknown Object (File)
Mon, Sep 14, 2:17 AM
Unknown Object (File)
Sat, Sep 12, 9:44 PM
Unknown Object (File)
Wed, Sep 9, 5:28 AM
Unknown Object (File)
Sat, Sep 5, 1:25 PM
Unknown Object (File)
Sat, Sep 5, 1:25 PM
Unknown Object (File)
Sat, Sep 5, 1:25 PM
Unknown Object (File)
Sat, Sep 5, 9:08 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