Page MenuHomeFreeBSD

sound: Retire feedertab_entry
ClosedPublic

Authored by christos on Nov 3 2025, 3:30 PM.
Tags
None
Referenced Files
F146512826: D53554.id.diff
Tue, Mar 3, 6:56 AM
F146512206: D53554.id165738.diff
Tue, Mar 3, 6:48 AM
F146512202: D53554.id165803.diff
Tue, Mar 3, 6:48 AM
F146512195: D53554.id166217.diff
Tue, Mar 3, 6:48 AM
Unknown Object (File)
Fri, Feb 20, 12:16 AM
Unknown Object (File)
Mon, Feb 16, 6:16 PM
Unknown Object (File)
Mon, Feb 16, 11:37 AM
Unknown Object (File)
Tue, Feb 3, 12:19 PM
Subscribers

Details

Summary

Have an SLIST of feeder_class directly. This way we simplify the code,
and also avoid the additional malloc()/free() for each entry.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 68405
Build 65288: arc lint + arc unit

Event Timeline

sys/dev/sound/pcm/feeder.c
44

How is this list locked?

71

This loop can be replaced by SLIST_INIT(&feedertab);

christos marked an inline comment as done.

Address Mark's comment.

sys/dev/sound/pcm/feeder.c
44

It isn't. This list is created once after sound.ko has been loaded, and destroyed on unload. There is no adding/removing in the meantime.

This revision is now accepted and ready to land.Nov 4 2025, 12:51 PM
This revision was automatically updated to reflect the committed changes.