Page MenuHomeFreeBSD

sound: Retire feedertab_entry
ClosedPublic

Authored by christos on Nov 3 2025, 3:30 PM.
Tags
None
Referenced Files
F163145783: D53554.id165803.diff
Mon, Jul 20, 12:32 PM
F163135603: D53554.diff
Mon, Jul 20, 10:05 AM
F163082718: D53554.diff
Sun, Jul 19, 10:24 PM
Unknown Object (File)
Sat, Jul 18, 4:28 AM
Unknown Object (File)
Wed, Jul 15, 6:53 AM
Unknown Object (File)
Wed, Jul 15, 6:53 AM
Unknown Object (File)
Sun, Jun 21, 2:55 PM
Unknown Object (File)
Jun 19 2026, 8:35 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 Not Applicable
Unit
Tests Not Applicable

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.