xref: /linux/Documentation/dev-tools/kunit/api/resource.rst (revision 06d07429858317ded2db7986113a9e0129cd599b)
161695f8cSDaniel Latypov.. SPDX-License-Identifier: GPL-2.0
261695f8cSDaniel Latypov
361695f8cSDaniel Latypov============
461695f8cSDaniel LatypovResource API
561695f8cSDaniel Latypov============
661695f8cSDaniel Latypov
761695f8cSDaniel LatypovThis file documents the KUnit resource API.
861695f8cSDaniel Latypov
961695f8cSDaniel LatypovMost users won't need to use this API directly, power users can use it to store
1061695f8cSDaniel Latypovstate on a per-test basis, register custom cleanup actions, and more.
1161695f8cSDaniel Latypov
1261695f8cSDaniel Latypov.. kernel-doc:: include/kunit/resource.h
1361695f8cSDaniel Latypov   :internal:
14*d03c720eSdavidgow@google.com
15*d03c720eSdavidgow@google.comManaged Devices
16*d03c720eSdavidgow@google.com---------------
17*d03c720eSdavidgow@google.com
18*d03c720eSdavidgow@google.comFunctions for using KUnit-managed struct device and struct device_driver.
19*d03c720eSdavidgow@google.comInclude ``kunit/device.h`` to use these.
20*d03c720eSdavidgow@google.com
21*d03c720eSdavidgow@google.com.. kernel-doc:: include/kunit/device.h
22*d03c720eSdavidgow@google.com   :internal:
23