]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linuxkpi: Add devm_add_action and devm_add_action_or_reset
authorEmmanuel Vadot <manu@FreeBSD.org>
Fri, 17 Mar 2023 11:22:06 +0000 (12:22 +0100)
committerEmmanuel Vadot <manu@FreeBSD.org>
Tue, 28 Mar 2023 07:19:05 +0000 (09:19 +0200)
commitaaf6129c9dcde5eb020f585901a6f32d850d8cf6
treecb16569f74f6da9b1220b05ff568941850f9f41a
parentf1d7ae31d4aa7b352611c43a9fb3b04986cff622
linuxkpi: Add devm_add_action and devm_add_action_or_reset

Those adds a new devres and will exectute some function on release.

Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D39142
Sponsored by: Beckhoff Automation GmbH & Co. KG
sys/compat/linuxkpi/common/include/linux/device.h
sys/compat/linuxkpi/common/src/linux_devres.c