]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
LinuxKPI: tasklet add (*callback) support
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 30 Oct 2022 17:20:11 +0000 (17:20 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Tue, 8 Nov 2022 18:14:17 +0000 (18:14 +0000)
commitf2978460c7fd5d90837843cbe8edf86a2df4a922
tree1c9ef642e943484534de5f4ad5f94d04f86e45ce
parente2361e04b02aafa927c32c4f5a39e6fd96196082
LinuxKPI: tasklet add (*callback) support

In addition to (*func) tasklet also seems to have a (*callback) with
a different argument.  Add support for this and add tasklet_setup()
as well for support in more drivers.

The from_tasklet() definition is duplicated in the tree; hide it there
under #ifndef to avoid a re-definition.  People should generally add
LinuxKPI bits to linuxkpi rather than private files if they also rely
on other LinuxKPI bits.

X-MFC: DO NOT MFC, space allocated by drivers not us.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D37216
sys/compat/linuxkpi/common/include/linux/interrupt.h
sys/compat/linuxkpi/common/src/linux_tasklet.c
sys/dev/irdma/fbsd_kcompat.h