1 .. SPDX-License-Identifier: GPL-2.0 1 .. SPDX-License-Identifier: GPL-2.0 2 2 3 ============ 3 ============ 4 Resource API 4 Resource API 5 ============ 5 ============ 6 6 7 This file documents the KUnit resource API. 7 This file documents the KUnit resource API. 8 8 9 Most users won't need to use this API directly 9 Most users won't need to use this API directly, power users can use it to store 10 state on a per-test basis, register custom cle 10 state on a per-test basis, register custom cleanup actions, and more. 11 11 12 .. kernel-doc:: include/kunit/resource.h 12 .. kernel-doc:: include/kunit/resource.h 13 :internal: 13 :internal: 14 14 15 Managed Devices 15 Managed Devices 16 --------------- 16 --------------- 17 17 18 Functions for using KUnit-managed struct devic 18 Functions for using KUnit-managed struct device and struct device_driver. 19 Include ``kunit/device.h`` to use these. 19 Include ``kunit/device.h`` to use these. 20 20 21 .. kernel-doc:: include/kunit/device.h 21 .. kernel-doc:: include/kunit/device.h 22 :internal: 22 :internal:
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.