resource.rst 531 B

12345678910111213141516171819202122
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ============
  3. Resource API
  4. ============
  5. This file documents the KUnit resource API.
  6. Most users won't need to use this API directly, power users can use it to store
  7. state on a per-test basis, register custom cleanup actions, and more.
  8. .. kernel-doc:: include/kunit/resource.h
  9. :internal:
  10. Managed Devices
  11. ---------------
  12. Functions for using KUnit-managed struct device and struct device_driver.
  13. Include ``kunit/device.h`` to use these.
  14. .. kernel-doc:: include/kunit/device.h
  15. :internal: