Page MenuHomeFreeBSD

linuxkpi: Add list_for_each_entry_lockless() macro
ClosedPublic

Authored by nc on Wed, Jun 9, 6:21 PM.

Details

Summary

The reason why list_for_each_entry() is being redefined here is because unlike the Linux version, FreeBSD's list_for_each_entry() does not use locks.

This is needed by the drm-kmod 5.7 update.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

nc requested review of this revision.Wed, Jun 9, 6:21 PM
nc retitled this revision from Add list_for_each_entry_lockless() macro to linuxkpi: Add list_for_each_entry_lockless() macro.Wed, Jun 9, 6:23 PM

If it's the same as list_for_each_entry you should explain why in the commit message.

I believe linuxkpi's list_for_each_entry is lockless (but am not sure), so I updated the message.

Please use function macro.

#define list_for_each_entry_lockless(...) list_for_each_entry(__VA_ARGS__)

--HPS

Using function macro as per @hselasky's suggestion.

This revision is now accepted and ready to land.Thu, Jun 10, 7:29 AM