Page MenuHomeFreeBSD

linuxkpi: Add `sysfs_create_bin_file()` and `sysfs_remove_bin_file()`
Needs ReviewPublic

Authored by dumbbell on Wed, Feb 19, 9:35 PM.
Tags
None
Referenced Files
F110665089: D49068.id.diff
Fri, Feb 21, 3:53 PM
Unknown Object (File)
Thu, Feb 20, 7:40 AM
Subscribers

Details

Reviewers
None
Group Reviewers
linuxkpi
Summary

They are used by the i915 DRM driver for quite some time, but that code was commented out. It was moved around in Linux 6.8, so instead of figuring out what should be commented out now, let's add an implementation of these functions.

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

Sponsored by: The FreeBSD Foundation

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

So we expose sysfs entries via sysctl?

Yes. For now, there is no connection between linsysfs and linuxkpi: linuxkpi does not add its entries as files and directories in linsysfs, it always used a sysctl interface instead.

Perhaps this is something we can change in the future. It would be way closer to Linux and would make sense, but it will be a breaking change (I don’t know the consumers of the sysctl OIDs).