KUNIT_ARRAY_PARAM(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– KUNIT_ARRAY_PARAM πŸ’–

okay bestie, welcome to the Kernel API Manual page for KUNIT_ARRAY_PARAM(9) β€” yes that's the section 9 situation, kernel-API territory, pull up a chair 🫢


✨ NAME ✨

KUNIT_ARRAY_PARAM β€” the macro that defines your test parameter generator straight from an array. literally it's giving "make params out of the list you already wrote" πŸ’…


🌸 SYNOPSIS 🌸

KUNIT_ARRAY_PARAM (name , array , get_desc );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” the prefix for the test parameter generator function. like, the naming bit, iykyk ✨
  • array β€” the actual array of test parameters. your data, your moment πŸ‘‘
  • get_desc β€” a function that converts a param into a description. and if you pass NULL? no stress, it just uses the default πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so what it does is define a function called name_gen_params which uses array to generate parameters. that's it, that's the whole vibe β€” array in, params out, slay πŸ’–


🌈 SEE ALSO 🌈

Kernel file ./include/kunit/test.h, plus the whole friend group:


and that's the page!! this one came out of ./include/kunit, stamped October 2026, and it lives in the Kernel API Manual β€” go forth and generate your params, bestie, you're gonna ate πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from