Page MenuHomeFreeBSD

linuxkpi: Define `fd_file()`
ClosedPublic

Authored by dumbbell on Apr 16 2026, 8:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, May 26, 2:24 AM
Unknown Object (File)
Tue, May 26, 2:16 AM
Unknown Object (File)
Mon, May 25, 9:09 PM
Unknown Object (File)
Mon, May 25, 9:04 PM
Unknown Object (File)
Sun, May 24, 9:25 PM
Unknown Object (File)
Sun, May 24, 9:18 PM
Unknown Object (File)
Sun, May 17, 11:48 AM
Unknown Object (File)
Sun, May 17, 5:11 AM
Subscribers

Details

Reviewers
bz
Group Reviewers
linuxkpi
Commits
rG373871696d3d: linuxkpi: Define `fd_file()`
Summary

This macro simply returns the file field of the struct fd.

The DRM generic code and the amdgpu driver 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 requested changes to this revision.Apr 20 2026, 9:57 PM
bz added a subscriber: bz.
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/file.h
187

I think returning (fd).linux_file will save us trouble and be consistent with the code right above. Also it's self-documenting then.

This revision now requires changes to proceed.Apr 20 2026, 9:57 PM
This revision is now accepted and ready to land.Apr 22 2026, 1:38 PM
This revision was automatically updated to reflect the committed changes.