]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Update `struct irq_work`
authorJean-Sébastien Pédron <dumbbell@FreeBSD.org>
Fri, 11 Nov 2022 17:32:58 +0000 (18:32 +0100)
committerJean-Sébastien Pédron <dumbbell@FreeBSD.org>
Fri, 11 Nov 2022 17:32:58 +0000 (18:32 +0100)
commitf021c5c4a1770987f01530fa59e5ccba3759c0ab
treed9921d029de009c5b49ef96ec47ed49d0ba324cd
parentbfe6bfd79e05041f0b3ca2ca2f18405f5c4a6484
linuxkpi: Update `struct irq_work`

The previous `llnode` field is moved inside another field `node`.

This `node` field is a `struct __call_single_node` in Linux. Here, we
simply add an anonymous struct with the `llnode` field inside. That
field's new name is `llist` now.

V2: Use an anonymous union to keep the structure backward compatible
    with drivers using the previous `llnode` field. This was suggested
    by wufl@ and hselasky@. Thank you!

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D36955
sys/compat/linuxkpi/common/include/linux/irq_work.h