Page MenuHomeFreeBSD

lindebugfs: implement debugfs_create_devm_seqfile()
ClosedPublic

Authored by bz on Jun 10 2026, 12:09 PM.
Referenced Files
Unknown Object (File)
Sun, Oct 11, 7:51 AM
Unknown Object (File)
Sun, Oct 11, 3:59 AM
Unknown Object (File)
Thu, Oct 1, 3:32 PM
Unknown Object (File)
Thu, Oct 1, 1:31 AM
Unknown Object (File)
Thu, Sep 17, 11:31 AM
Unknown Object (File)
Sun, Sep 13, 4:33 AM
Unknown Object (File)
Sep 11 2026, 5:11 AM
Unknown Object (File)
Sep 10 2026, 6:04 AM

Details

Summary

Implement debugfs_create_devm_seqfile() keyed by device and a
read function.

XXX I am not really sure where to put all the bits as they do not
seem to really belong in lindebugfs, but also do not really fit
into debugfs.h (rather fs.h?)
I have thus left over a few bits to cleanup in the hope we can
sort the belonings of the implementation out first.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

Diff Detail

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

Event Timeline

bz requested review of this revision.Jun 10 2026, 12:09 PM

Please see the XXX in the proposed commit message for now. I still wonder which headers and implementation files to put these things given they are this weird mix between device binding and debugfs.

I am expecting to move things around as a result so technical or style review maybe after this is sorted and I updated the review.

Anyone any suggestions/comments on where to place these bits?

dumbbell added a subscriber: dumbbell.

I don’t have a better suggestion to make w.r.t. to the best location for this code.

This revision is now accepted and ready to land.Sep 10 2026, 7:11 PM